Publishing my first package: "Object is not a commit object"

Hello,
I have finally managed to set-up the documentation and CI testing for a package I want to publish to metadata.

I was about to do the final steps of the package and I am getting an error I do not know how to handle.

PkgDev.register("DynamicalBilliards")
INFO: Registering DynamicalBilliards at https://github.com/Datseris/DynamicalBilliards.jl.git
INFO: Tagging DynamicalBilliards v0.1.0
INFO: Tagging DynamicalBilliards v0.1.5
INFO: Tagging DynamicalBilliards v0.1.6
INFO: Tagging DynamicalBilliards v0.2.0
INFO: Tagging DynamicalBilliards v0.3.0
INFO: Tagging DynamicalBilliards v0.4.0
INFO: Committing METADATA for DynamicalBilliards

julia> PkgDev.tag("DynamicalBilliards", v"0.5.0")
INFO: Tagging DynamicalBilliards v0.5.0
INFO: Committing METADATA for DynamicalBilliards

julia> PkgDev.publish()
INFO: Validating METADATA
INFO: Pushing DynamicalBilliards permanent tags: v0.1.0, v0.1.5, v0.1.6, v0.2.0, v0.3.0, v0.4.0, v0.5.0
ERROR: GitError(Code:ERROR, Class:Invalid, Object is no commit object)
 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\datseris\.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\datseris\.julia\v0.5\PkgDev\src\entry.jl:97
 in publish() at C:\Users\datseris\.julia\v0.5\PkgDev\src\PkgDev.jl:70

I would really appreciate any help!

I would strongly suggest using AttoBot instead.

I have already tagged about 5 release versions though. Will it still work?

I think it will only publish the tag you specify in AttoBot. Just give it a try and see what happens! Can always be undone / fixed later.

It turns out everything worked fine! Thanks for the suggestion!!!

1 Like