PkgDev.tag issues

206 views
Skip to first unread message

Brandon Taylor

unread,
Sep 22, 2016, 12:39:16 PM9/22/16
to julia-users
I'm trying to tag and publish a new version of ChainMap for 0.5 but I'm having difficulty. I'm probably being extra stupid today, but,

every time I run Pkg.tag, I get

INFO: Tagging ChainMap v0.1.0
INFO: No METADATA changes to commit

and when I run PkgDev.publish(), I get
ERROR: There are no METADATA changes to publish

Tony Kelman

unread,
Sep 22, 2016, 5:29:23 PM9/22/16
to julia-users
What does Pkg.status() say? What operating system are you using? What is git status in METADATA and the package repo?

Evan Fields

unread,
Sep 24, 2016, 12:57:25 PM9/24/16
to julia-users
I've had this problem as well so I'm eager to learn a solution. It was a while ago, but when this happened to me, git status in the metadata repo would show uncommitted changes. I think I had to reset metadata to a clean state, manually delete some tags in the package repository, and run the package commands again.

Brandon Taylor

unread,
Sep 24, 2016, 9:22:49 PM9/24/16
to julia-users
Pkg.status():

julia> Pkg.status()
3 required packages:
 - IJulia                        1.3.2
 - PkgDev                        0.1.2
 - SymPy                         0.3.2
62 additional packages:
 - ASTInterpreter                0.0.4
 - AbstractTrees                 0.0.4
 - ArgParse                      0.3.1
 - Atom                          0.5.2+             master
 - BinDeps                       0.4.5
 - Blink                         0.4.1+             master
 - Blosc                         0.1.7
 - BufferedStreams               0.2.0
 - COFF                          0.0.2
 - CRC                           1.1.1
 - ChainMap                      1.0.0              master
 - CodeTools                     0.4.0
 - Codecs                        0.2.0
 - ColorTypes                    0.2.6
 - Colors                        0.6.7
 - Compat                        0.9.2              master
 - Conda                         0.3.2
 - DWARF                         0.1.0
 - DataStructures                0.4.6
 - ELF                           0.1.0
 - FileIO                        0.1.2
 - FixedPointNumbers             0.1.7
 - Gallium                       0.0.4
 - HDF5                          0.6.6
 - Hiccup                        0.0.3
 - HttpCommon                    0.2.6
 - HttpParser                    0.2.0
 - HttpServer                    0.1.6+             master
 - JLD                           0.6.3
 - JSON                          0.7.0
 - JuliaParser                   0.7.4
 - Juno                          0.2.1+             master
 - LNR                           0.0.2
 - Lazy                          0.11.2
 - LegacyStrings                 0.1.1
 - LibExpat                      0.2.1
 - Libz                          0.2.0
 - MachO                         0.0.4
 - MacroTools                    0.3.2+             master
 - MbedTLS                       0.3.0
 - Media                         0.2.2
 - Mustache                      0.1.2
 - Mux                           0.2.1+             master
 - Nettle                        0.2.4              master
 - NullableArrays                0.0.9
 - ObjFileBase                   0.0.4
 - PyCall                        1.7.2
 - Reactive                      0.3.4
 - RecipesBase                   0.0.6
 - Reexport                      0.0.3
 - Requires                      0.3.0              master
 - SHA                           0.2.1
 - StructIO                      0.0.2
 - TerminalUI                    0.0.2
 - TextWrap                      0.1.6
 - URIParser                     0.1.6
 - VT100                         0.0.2
 - Weave                         0.1.2+             master (dirty)
 - WebSockets                    0.2.1              master
 - WinRPM                        0.2.1
 - ZMQ                           0.3.4
 - jl_8DD2.tmp                   0.0.0-             non-repo (unregistered)

METADATA git status

On branch metadata-v2
Your branch is up-to-date with 'origin/metadata-v2'.
Untracked files:
  (use "git add <file>..." to include in what will be committed)

        ChainMap/versions/1.0.0/

nothing added to commit but untracked files present (use "git add" to track)

ChainMap git status:

On branch master
Your branch is up-to-date with 'origin/master'.
nothing to commit, working directory clean

I can try git add

But first, I wanted to back to METADATA and delete all my failed attempts at tagging. I deleted all folders > 0.0.10 (my last published tag).

Now, I can't tag a patch, minor, or major version. I'm just getting this:

ERROR: GitError(Code:EEXISTS, Class:Tag, Tag already exists)
 in macro expansion at .\libgit2\error.jl:99 [inlined]
 in (::Base.LibGit2.##74#76{Base.LibGit2.GitCommit,String,Bool,Base.LibGit2.GitRepo,String,Base.RefValue{Base.LibGit2.Oid}})(::Base.LibGit2.GitSignature) at .\libgit2\tag.jl:25
 in with(::Base.LibGit2.##74#76{Base.LibGit2.GitCommit,String,Bool,Base.LibGit2.GitRepo,String,Base.RefValue{Base.LibGit2.Oid}}, ::Base.LibGit2.GitSignature) at .\libgit2\types.jl:638
 in (::Base.LibGit2.##73#75{String,Bool,Base.LibGit2.Signature,Base.LibGit2.GitRepo,String,Base.RefValue{Base.LibGit2.Oid}})(::Base.LibGit2.GitCommit) at .\libgit2\tag.jl:24
 in with(::Base.LibGit2.##73#75{String,Bool,Base.LibGit2.Signature,Base.LibGit2.GitRepo,String,Base.RefValue{Base.LibGit2.Oid}}, ::Base.LibGit2.GitCommit) at .\libgit2\types.jl:638
 in #tag_create#72(::String, ::Bool, ::Base.LibGit2.Signature, ::Function, ::Base.LibGit2.GitRepo, ::String, ::String) at .\libgit2\tag.jl:22
 in (::Base.LibGit2.#kw##tag_create)(::Array{Any,1}, ::Base.LibGit2.#tag_create, ::Base.LibGit2.GitRepo, ::String, ::String) at .\<missing>:0
 in (::PkgDev.Entry.##37#45{String,Bool,String})(::Base.LibGit2.GitRepo) at C:\Users\jsnot\.julia\v0.5\PkgDev\src\entry.jl:261
 in with(::PkgDev.Entry.##37#45{String,Bool,String}, ::Base.LibGit2.GitRepo) at .\libgit2\types.jl:638
 in tag(::String, ::Symbol, ::Bool, ::String) at C:\Users\jsnot\.julia\v0.5\PkgDev\src\entry.jl:225
 in (::Base.Pkg.Dir.##2#3{Array{Any,1},PkgDev.Entry.#tag,Tuple{String,Symbol}})() at .\pkg\dir.jl:31
 in cd(::Base.Pkg.Dir.##2#3{Array{Any,1},PkgDev.Entry.#tag,Tuple{String,Symbol}}, ::String) at .\file.jl:48
 in #cd#1(::Array{Any,1}, ::Function, ::Function, ::String, ::Vararg{Any,N}) at .\pkg\dir.jl:31
 in tag(::String, ::Symbol) at C:\Users\jsnot\.julia\v0.5\PkgDev\src\PkgDev.jl:47

Tony Kelman

unread,
Sep 24, 2016, 10:02:21 PM9/24/16
to julia-users
You may have to remove the git tag from your local clone of the package repo.

Brandon Taylor

unread,
Sep 25, 2016, 2:16:35 AM9/25/16
to julia-users
Ok, I deleted the extraneous tags, and retagged. Same thing messages about no changes to commit.

So I git added the new v0.1.0 folder and then committed manually.

Then I tried PkgDev.publish() and I got this:

ERROR: GitError(Code:EAUTH, Class:None, No errors)

 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.##6#11{Dict{String,Array{String,1}}})(::Base.LibGit2.GitRepo) at C:\Users\jsnot\.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:638
 in publish(::String, ::String) at C:\Users\jsnot\.julia\v0.5\PkgDev\src\entry.jl:97
 in publish() at C:\Users\jsnot\.julia\v0.5\PkgDev\src\PkgDev.jl:70

So then I tried to checkout PkgDev as suggested here:
https://github.com/JuliaLang/PkgDev.jl/issues/69

and now I'm getting

INFO: Validating METADATA
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 'bramtayl':
INFO: Pushing ChainMap permanent tags: v0.1.0
INFO: Submitting METADATA changes
INFO: Forking JuliaLang/METADATA.jl to bramtayl
INFO: Pushing changes as branch pull-request/2ed12a90
ERROR: GitError(Code:ERROR, Class:Net, Remote error: access denied or repository not exported: /2/nw/29/05/c9/6106340/69147216.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 C:\Users\jsnot\.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 C:\Users\jsnot\.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 C:\Users\jsnot\.julia\v0.5\PkgDev\src\entry.jl:121
 in publish() at C:\Users\jsnot\.julia\v0.5\PkgDev\src\PkgDev.jl:70

Tony Kelman

unread,
Sep 26, 2016, 11:26:00 PM9/26/16
to julia-users
The "no changes to commit" issue sounds like https://github.com/JuliaLang/PkgDev.jl/issues/28, especially since you're on Windows. I don't know what's going on there or where to start debugging. I'm a little surprised you're only the second one to report the issue, I'd think it would have happened to more people by now. What version of Windows?

Chris Rackauckas

unread,
Sep 27, 2016, 11:20:12 AM9/27/16
to julia-users
It happened to me as well when I tagged yesterday. I just changed computers over to Linux... v0.5 Windows 10.

Brandon Taylor

unread,
Sep 27, 2016, 8:42:59 PM9/27/16
to julia-users
Windows 10? Is it because my Weave.jl package is dirty?
Reply all
Reply to author
Forward
0 new messages