# How to fix elm publish 'not tagged on GitHub' error?

**URL:** <https://discourse.elm-lang.org/t/how-to-fix-elm-publish-not-tagged-on-github-error/3625>\
**Category:** Learn\
**Created:** [May 10, 2019, 8:24am UTC](https://discourse.elm-lang.org/t/how-to-fix-elm-publish-not-tagged-on-github-error/3625 "2019-05-10T08:24:02Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Viir](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.elm-lang.org/viir/32/4103_2.png) [@Viir](https://discourse.elm-lang.org/u/Viir)\
**Post date:** [May 10, 2019, 8:24am UTC](https://discourse.elm-lang.org/t/how-to-fix-elm-publish-not-tagged-on-github-error/3625/1 "2019-05-10T08:24:02Z")

</div>

I am trying to publish an elm package after pushing it to Github at [https://github.com/Viir/onlinegamemaker/tree/1.0.0/implement/elm/package/simplegamedev](https://github.com/Viir/onlinegamemaker/tree/1.0.0/implement/elm/package/simplegamedev).

But I get this error message from `elm publish`:

```powershell
  X Version 1.0.0 is not tagged on GitHub!

-- NO TAG ----------------------------------------------------------------------

Packages must be tagged in git, but I cannot find a 1.0.0 tag.

These tags make it possible to find this specific version on GitHub.
To tag the most recent commit and push it to GitHub, run this:

    git tag -a 1.0.0 -m "new release"
    git push origin 1.0.0

The -m flag is for a helpful message. Try to make it more informative!

```

Following is the output from git when following the instructions:

```powershell
> git tag -a 1.0.0 -m "Support elm publish"
fatal: tag '1.0.0' already exists
> git push origin 1.0.0
fatal: 'origin' does not appear to be a git repository
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

```

After this error message, I guess the that the remote suggested by elm publish is not right. When I adapt the git command to use the actual remote, it looks like pushing the tag works:

```powershell
> git push viir 1.0.0
Everything up-to-date

```

Github displays the tag `1.0.0` in the UI: [https://github.com/Viir/onlinegamemaker/tree/1.0.0/implement/elm/package/simplegamedev](https://github.com/Viir/onlinegamemaker/tree/1.0.0/implement/elm/package/simplegamedev)

But when I run elm publish again, it still says:

> Version 1.0.0 is not tagged on GitHub!

What else does elm publish need to see the tag on Github?

---

<div class="post-metadata">

**Author:** ![joakin](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.elm-lang.org/joakin/32/171_2.png) [@joakin](https://discourse.elm-lang.org/u/joakin)\
**Post date:** [May 10, 2019, 9:47am UTC](https://discourse.elm-lang.org/t/how-to-fix-elm-publish-not-tagged-on-github-error/3625/2 "2019-05-10T09:47:19Z")

</div>

I’m not sure if it is the same issue, but maybe related to this? [https://github.com/elm/compiler/issues/1904](https://github.com/elm/compiler/issues/1904)

The name of your repo is different from the name on your elm.json, so maybe that is the issue.

---

<div class="post-metadata">

**Author:** ![Viir](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.elm-lang.org/viir/32/4103_2.png) [@Viir](https://discourse.elm-lang.org/u/Viir)\
**Post date:** [May 10, 2019, 7:42pm UTC](https://discourse.elm-lang.org/t/how-to-fix-elm-publish-not-tagged-on-github-error/3625/3 "2019-05-10T19:42:19Z")

</div>

Thanks @joakin for the tip!  
Yes that issue is related.  
I applied the workaround described there and copied the package to a dedicated repository. This seems to work, as `elm install` recognized the package now. I do not find the package on Ellie yet, which is the goal, but I suspect that is an outdated cache.

I am still interested to learn how elm publish works normally, or if there is a simpler workaround.

---

<div class="post-metadata">

**Author:** ![billstclair](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.elm-lang.org/billstclair/32/260_2.png) [@billstclair](https://discourse.elm-lang.org/u/billstclair)\
**Post date:** [May 16, 2019, 1:47pm UTC](https://discourse.elm-lang.org/t/how-to-fix-elm-publish-not-tagged-on-github-error/3625/4 "2019-05-16T13:47:42Z")

</div>

As far as I know, `elm publish` requires that the `name` in `elm.json` be `<username>/<respository>`, corresponding to `https://github.com/<username>/<repository>`. The `elm publish` help text telling you how to create GitHub tag that matches the `version` in `elm.json` is just that, help text. If you’ve configured your repository in the standard way, with the `origin` remote corresponding to the `master` branch, then you can use those commands as is. Otherwise, you have to change them as you did.

If you understand Haskell, you can see details at [https://github.com/elm/compiler/blob/master/builder/src/Elm/Publish.hs](https://github.com/elm/compiler/blob/master/builder/src/Elm/Publish.hs)

---

<div class="post-metadata">

**Author:** ![Viir](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.elm-lang.org/viir/32/4103_2.png) [@Viir](https://discourse.elm-lang.org/u/Viir)\
**Post date:** [May 17, 2019, 4:50pm UTC](https://discourse.elm-lang.org/t/how-to-fix-elm-publish-not-tagged-on-github-error/3625/5 "2019-05-17T16:50:58Z")

</div>

Thanks @billstclair for the hint.

> [@billstclair](#):
>
> As far as I know, `elm publish` requires that the `name` in `elm.json` be `<username>/<respository>` , corresponding to `https://github.com/<username>/<repository>` .

That is an interesting idea, where is this coming from? Do you think that it is intended to work this way?

> [@billstclair](#):
>
> If you understand Haskell, you can see details at [https://github.com/elm/compiler/blob/master/builder/src/Elm/Publish.hs](https://github.com/elm/compiler/blob/master/builder/src/Elm/Publish.hs)

That is good to know. I do not understand Haskell, at least not yet 😃  
Maybe I can find out more about why it behaves this way in this source code.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex035/uploads/elm_lang/original/1X/50a05e53677a2c3b47776d7abd0f113eb50193a1.png) [@system](https://discourse.elm-lang.org/u/system)\
**Post date:** [May 27, 2019, 4:51pm UTC](https://discourse.elm-lang.org/t/how-to-fix-elm-publish-not-tagged-on-github-error/3625/6 "2019-05-27T16:51:03Z")

</div>

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.
