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 hangs after entering Github user/pass #65

Closed
rsrock opened this issue Aug 11, 2016 · 5 comments
Closed

PkgDev.publish hangs after entering Github user/pass #65

rsrock opened this issue Aug 11, 2016 · 5 comments

Comments

@rsrock
Copy link
Member

rsrock commented Aug 11, 2016

I was running into the issues listed at the end of #48, but I saw that PkgDev master had a fix. So I checked it out, but now I run into this. Any ideas?

julia> PkgDev.publish("QuartzImageIO")
INFO: Validating METADATA
INFO: Pushing QuartzImageIO permanent tags: v0.1.3, v0.1.4
Username for 'https://github.com':rsrock
Password for 'https://rsrock@github.com':

[Hangs here, I banged on ^C after about 5 minutes of waiting]

^C^C^C^C^C^C^C^C^CWARNING: Force throwing a SIGINT
^CERROR: InterruptException:
 in macro expansion at ./libgit2/error.jl:96 [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:179
 in (::Base.LibGit2.#kw##push)(::Array{Any,1}, ::Base.LibGit2.#push, ::Base.LibGit2.GitRepo) at ./<missing>:0
 in (::PkgDev.Entry.##6#11{Dict{String,Array{String,1}}})(::Base.LibGit2.GitRepo) at /Users/rrock/.julia/v0.5/PkgDev/src/entry.jl:114
 in with(::PkgDev.Entry.##6#11{Dict{String,Array{String,1}}}, ::Base.LibGit2.GitRepo) at ./libgit2/types.jl:645
 in publish(::String, ::String) at /Users/rrock/.julia/v0.5/PkgDev/src/entry.jl:97
 in publish(::String) at /Users/rrock/.julia/v0.5/PkgDev/src/PkgDev.jl:70
@Keno
Copy link
Member

Keno commented Aug 11, 2016

I'm surprised it prompted your for username/password. It should have used the access token instead.

@rsrock
Copy link
Member Author

rsrock commented Aug 12, 2016

Seems that I didn't have an access token. I usually use ssh with github.

I ran PkgDev.GitHub.token() and that generated a token for me, so now publish works. Was I supposed to get a token automagically at some point?

Thanks for the tip.

@wildart
Copy link
Member

wildart commented Aug 16, 2016

Use PkgDev.config to setup your dev. environment.

@felipenoris
Copy link

felipenoris commented Jan 28, 2017

Is this still happening to you, @rsrock ?

@rsrock
Copy link
Member Author

rsrock commented Jan 28, 2017

No, all is good after calling PkgDev.Github.token(), but I don't see any documentation on that. I'll open an 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