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

**URL:** <https://discourse.julialang.org/t/publishing-my-first-package-object-is-not-a-commit-object/1698>\
**Category:** New to Julia\
**Tags:** question, package, first-steps\
**Created:** [January 26, 2017, 11:16am UTC](https://discourse.julialang.org/t/publishing-my-first-package-object-is-not-a-commit-object/1698 "2017-01-26T11:16:20Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Datseris](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/datseris/32/13406_2.png) [@Datseris](https://discourse.julialang.org/u/Datseris)\
**Post date:** [January 26, 2017, 11:16am UTC](https://discourse.julialang.org/t/publishing-my-first-package-object-is-not-a-commit-object/1698/1 "2017-01-26T11:16:20Z")

</div>

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.

```julia
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!

---

<div class="post-metadata">

**Author:** ![dpsanders](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dpsanders/32/3573_2.png) [@dpsanders](https://discourse.julialang.org/u/dpsanders)\
**Post date:** [January 26, 2017, 11:17am UTC](https://discourse.julialang.org/t/publishing-my-first-package-object-is-not-a-commit-object/1698/2 "2017-01-26T11:17:02Z")

</div>

I would strongly suggest using [AttoBot](https://github.com/attobot/attobot) instead.

---

<div class="post-metadata">

**Author:** ![Datseris](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/datseris/32/13406_2.png) [@Datseris](https://discourse.julialang.org/u/Datseris)\
**Post date:** [January 26, 2017, 11:55am UTC](https://discourse.julialang.org/t/publishing-my-first-package-object-is-not-a-commit-object/1698/3 "2017-01-26T11:55:35Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![dpsanders](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dpsanders/32/3573_2.png) [@dpsanders](https://discourse.julialang.org/u/dpsanders)\
**Post date:** [January 26, 2017, 12:02pm UTC](https://discourse.julialang.org/t/publishing-my-first-package-object-is-not-a-commit-object/1698/4 "2017-01-26T12:02:27Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Datseris](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/datseris/32/13406_2.png) [@Datseris](https://discourse.julialang.org/u/Datseris)\
**Post date:** [January 26, 2017, 12:51pm UTC](https://discourse.julialang.org/t/publishing-my-first-package-object-is-not-a-commit-object/1698/5 "2017-01-26T12:51:05Z")

</div>

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