Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
flip111 opened this issue Nov 1, 2023 · 5 comments
Open

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

flip111 opened this issue Nov 1, 2023 · 5 comments

Comments

@flip111
Copy link
Contributor

flip111 commented Nov 1, 2023

» 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
Copy link
Member

f-f commented Nov 1, 2023

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

@flip111
Copy link
Contributor Author

flip111 commented Nov 1, 2023

I overlooked that it seems :(

@flip111 flip111 closed this as completed Nov 1, 2023
@f-f f-f reopened this Nov 1, 2023
@f-f
Copy link
Member

f-f commented Nov 1, 2023

I think we can improve that error message.

@f-f f-f added the document me label Nov 1, 2023
@f-f f-f added this to the spago-next alpha bugs milestone Nov 1, 2023
@JordanMartinez
Copy link
Collaborator

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
Copy link
Member

f-f commented Dec 1, 2023

@JordanMartinez we should add a test to verify this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants