Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PkgDev.publish(): access denied when pushing #87

Closed
pwl opened this issue Nov 7, 2016 · 6 comments
Closed

PkgDev.publish(): access denied when pushing #87

pwl opened this issue Nov 7, 2016 · 6 comments

Comments

@pwl
Copy link

pwl commented Nov 7, 2016

For some reason I can't push the changes to METADATA, although a personal fork of METADATA was created on my profile. Manually adding the my fork as a remote and pushing the METADATA worked just fine. Should I change the origin remote before before using PkgDev.publish()?

julia> PkgDev.publish()
INFO: Validating METADATA
INFO: Pushing DASSL permanent tags: v0.1.0
INFO: Submitting METADATA changes
INFO: Forking JuliaLang/METADATA.jl to pwl
INFO: Pushing changes as branch pull-request/0a98e03c
ERROR: GitError(Code:ERROR, Class:Net, Remote error: access denied or repository not exported: /2/nw/29/05/c9/6106340/73078109.git)
 in macro expansion at ./libgit2/error.jl:99 [inlined]
 in #push#53(::Bool, ::Base.LibGit2.PushOptions, ::Function, ::Base.LibGit2.GitRemote, ::Array{String,1}) at ./libgit2/remote.jl:84
 in (::Base.LibGit2.#kw##push)(::Array{Any,1}, ::Base.LibGit2.#push, ::Base.LibGit2.GitRemote, ::Array{String,1}) at ./<missing>:0
 in #push#94(::String, ::String, ::Array{String,1}, ::Bool, ::Nullable{Base.LibGit2.UserPasswordCredentials}, ::Function, ::Base.LibGit2.GitRepo) at ./libgit2/libgit2.jl:185
 in (::Base.LibGit2.#kw##push)(::Array{Any,1}, ::Base.LibGit2.#push, ::Base.LibGit2.GitRepo) at ./<missing>:0
 in (::PkgDev.Entry.##2#3)(::Base.LibGit2.GitRepo) at /home/pawel/.julia/v0.5/PkgDev/src/entry.jl:39
 in with(::PkgDev.Entry.##2#3, ::Base.LibGit2.GitRepo) at ./libgit2/types.jl:638
 in #pull_request#1(::String, ::String, ::String, ::Function, ::String) at /home/pawel/.julia/v0.5/PkgDev/src/entry.jl:15
 in (::PkgDev.Entry.#kw##pull_request)(::Array{Any,1}, ::PkgDev.Entry.#pull_request, ::String) at ./<missing>:0
 in publish(::String, ::String) at /home/pawel/.julia/v0.5/PkgDev/src/entry.jl:121
 in publish() at /home/pawel/.julia/v0.5/PkgDev/src/PkgDev.jl:70
 in eval_user_input(::Any, ::Base.REPL.REPLBackend) at ./REPL.jl:64
 in macro expansion at ./REPL.jl:95 [inlined]
 in (::Base.REPL.##3#4{Base.REPL.REPLBackend})() at ./event.jl:68

EDIT: I should have added that I don't have direct write access to the METADATA.jl repo, I don't know if that's relevant.

@felipenoris
Copy link

Same thing here.

@felipenoris
Copy link

I got this solved for me running PkgDev.GitHub.token() before PkgDev.publish().
See #95 , #65 .
@pwl, check if this works for you also.

@pwl
Copy link
Author

pwl commented Feb 1, 2017

@felipenoris Thanks for the tip. I have already fixed the repo manually and I can't reproduce this issue anymore.

@ararslan ararslan changed the title PkgDev.publish(): access aenied when pushining PkgDev.publish(): access denied when pushing Feb 1, 2017
@felipenoris
Copy link

felipenoris commented Jun 3, 2017

This is still happening to me on v0.6 . PkgDev.GitHub.token() workaround didn't work for me.

On v0.5 everything works fine.

@felipenoris
Copy link

Now nothing works for me on v0.5. Tried on mac and linux.

@pluskid
Copy link
Member

pluskid commented Nov 8, 2017

Same here, token trick solved my issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants