Summary
Currently there are some breaking changes between Atom v1.12 and v1.13 (beta). I released a version that targets v1.13. Then I needed to release a patch version for a previous version of my package, the version that targets v1.12. However it does not seem possible. I thought it would be as simple as manually providing the tag on the command line.
Reference
This was discussed initially on the Atom forums, https://discuss.atom.io/t/can-not-publish-a-patch-for-an-older-version/36517/4 Below is a copy of my initial post from that page.
I'm trying to publish a patch version of an older version of a package. The latest version is for Atom 1.13 only, but I need to push out a fix for a version that is for Atom 1.12 only.
Here's what I did:
$ git co v0.25.2
$ git co -b feature/branch
# edited code
$ git add --all
$ git ci -m "blah blah"
$ git push -fu origin feature/branch
# on github, merged the branch into master
$ apm publish -t 0.25.3
Publishing multi-wrap-guide@v0.25.3 ✗
Creating new version failed: Git tag not found
Uh.. OK? So I created the tag myself.
$ git tag v0.25.3
$ apm publish -t 0.25.3
Publishing multi-wrap-guide@v0.25.3 ✗
Creating new version failed: Git tag not found
O... kay... I guess I need to push the tag to origin first?
$ git push origin v0.25.3
$ apm publish -t 0.25.3
Publishing multi-wrap-guide@v0.25.3 ✗
Creating new version failed: Version exists
Um no. I literally just created the tag myself. The version does NOT exist yet.
Is there a way to force apm to publish this correctly?
Summary
Currently there are some breaking changes between Atom v1.12 and v1.13 (beta). I released a version that targets v1.13. Then I needed to release a patch version for a previous version of my package, the version that targets v1.12. However it does not seem possible. I thought it would be as simple as manually providing the tag on the command line.
Reference
This was discussed initially on the Atom forums, https://discuss.atom.io/t/can-not-publish-a-patch-for-an-older-version/36517/4 Below is a copy of my initial post from that page.
I'm trying to publish a patch version of an older version of a package. The latest version is for Atom 1.13 only, but I need to push out a fix for a version that is for Atom 1.12 only.
Here's what I did:
Uh.. OK? So I created the tag myself.
O... kay... I guess I need to push the tag to origin first?
Um no. I literally just created the tag myself. The version does NOT exist yet.
Is there a way to force apm to publish this correctly?