purescript / spago

๐Ÿ PureScript package manager and build tool
BSD 3-Clause "New" or "Revised" License
790 stars 132 forks source link

Can not publish with tag v0.0.2 only v0.0.1 for initial publish #1109

Open flip111 opened 1 year ago

flip111 commented 1 year ago
ยป npx spago publish
Reading Spago workspace configuration...
Read the package set from the registry

โœ… Selecting package to build: foldable-traversable-extra

Downloading dependencies...
Building...
           Src   Lib   All
Warnings     0     0     0
Errors       0     0     0

โœ… Build succeeded.

Your package "foldable-traversable-extra" is not ready for publishing yet, encountered 1 error:

โŒ The tag (v0.0.2) does not match the expected tag (v0.0.1).
Please make sure to tag the correct version before publishing.

What can i do here to publish the package?

f-f commented 1 year ago

It sounds like the tag declared in the spago.yaml does not match the git tag you're on

flip111 commented 1 year ago

I overlooked that it seems :(

f-f commented 1 year ago

I think we can improve that error message.

JordanMartinez commented 11 months ago

Correct me if I'm wrong, but doesn't the publish command now fail if the expected tag in spago doesn't match the one checked out by git?

f-f commented 11 months ago

@JordanMartinez we should add a test to verify this