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

publish does not find changes after tagging #85

Closed
ChrisRackauckas opened this issue Oct 17, 2016 · 5 comments
Closed

publish does not find changes after tagging #85

ChrisRackauckas opened this issue Oct 17, 2016 · 5 comments

Comments

@ChrisRackauckas
Copy link
Member

ChrisRackauckas commented Oct 17, 2016

RE: JuliaLang/METADATA.jl#6780 I get the following error:

julia> using PkgDev

julia> PkgDev.tag("ParameterizedFunctions")
INFO: Tagging ParameterizedFunctions v0.0.1

julia> PkgDev.publish()
ERROR: There are no METADATA changes to publish
 in (::PkgDev.Entry.##4#9{String,Dict{String,Array{String,1}},String})(::Base.LibGit2.GitRepo) at C:\Users\Chris\.julia\v0.6\PkgDev\src\entry.jl:72
 in with(::PkgDev.Entry.##4#9{String,Dict{String,Array{String,1}},String}, ::Base.LibGit2.GitRepo) at .\libgit2\types.jl:638
 in publish(::String, ::String) at C:\Users\Chris\.julia\v0.6\PkgDev\src\entry.jl:64
 in publish() at C:\Users\Chris\.julia\v0.6\PkgDev\src\PkgDev.jl:70

so I usually have to manually push to METADATA and manually push the tags (oops, forget this sometimes). FWIW this only happens on Windows for me, so many time I just change to a Linux computer. But I've had this happen on multiple Windows computers over the course of a few months.

@tkelman
Copy link
Contributor

tkelman commented Oct 17, 2016

Sounds like it might be #28, which should be fixed on master and just needs a tag.

@ChrisRackauckas
Copy link
Member Author

After deleting the tag to start over:

julia> Pkg.checkout("PkgDev")
INFO: Checking out PkgDev master...
INFO: Pulling PkgDev latest master...
INFO: No packages to install, update or remove

julia> PkgDev.tag("ParameterizedFunctions")
INFO: Tagging ParameterizedFunctions v0.0.1

julia> PkgDev.publish()
ERROR: There are no METADATA changes to publish
 in (::PkgDev.Entry.##4#9{String,Dict{String,Array{String,1}},String})(::Base.LibGit2.GitRepo) at C:\Users\Chris\.julia\v0.6\PkgDev\src\entry.jl:72
 in with(::PkgDev.Entry.##4#9{String,Dict{String,Array{String,1}},String}, ::Base.LibGit2.GitRepo) at .\libgit2\types.jl:638
 in publish(::String, ::String) at C:\Users\Chris\.julia\v0.6\PkgDev\src\entry.jl:64
 in publish() at C:\Users\Chris\.julia\v0.6\PkgDev\src\PkgDev.jl:70

@tkelman
Copy link
Contributor

tkelman commented Oct 17, 2016

Hm. What does git status say in METADATA?

@ChrisRackauckas
Copy link
Member Author

I saw there was a problem with my configuration somehow, so I reconfigured. However, it won't get the two-factor authentication right. I get:

julia> PkgDev.publish()
INFO: No new package versions to publish
INFO: Validating METADATA
INFO: Submitting METADATA changes
INFO: Forking JuliaLang/METADATA.jl to ChrisRackauckas
INFO: Creating a personal access token for Julia Package Manager on GitHub.
        You will be asked to provide credentials to your GitHub account.
Enter host password for user 'ChrisRackauckas':
INFO: Two-factor authentication in use.  Enter auth code.  (You may have to re-enter your password.)
Authentication code: 
Enter host password for user 'ChrisRackauckas':

and what's weird is that the authentication code and the password actually show up as plain text, and I have to hit enter an extra time to finish the authentication code command.

@tkelman
Copy link
Contributor

tkelman commented Oct 17, 2016

Hm. The authentication prompts here should probably be changed to use the more-secure password prompting that was introduced in Base along with the ssh work.

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

3 participants