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

goreleaser: Don't prefix docker image with v #2972

Closed
wants to merge 1 commit into from

Conversation

metalmatze
Copy link
Member

The version should have the v as part of the name for a release.

Additionally renaming the deprecated name_template to version_template.

The version should have the v as part of the name for a release.
@metalmatze
Copy link
Member Author

metalmatze commented Aug 27, 2024

Hey @jnsgruk, the builds are failing for snap. What is the best way to resolve this for snaps?

Cannot pack snap: error: cannot validate snap "parca-agent": invalid snap version "goreleaser-docker-version-d12fff49": cannot be longer than 32 characters (got: 34)

@jnsgruk
Copy link
Contributor

jnsgruk commented Aug 27, 2024

Hey @jnsgruk, the builds are failing for snap. What is the best way to resolve this for snaps?


Cannot pack snap: error: cannot validate snap "parca-agent": invalid snap version "goreleaser-docker-version-d12fff49": cannot be longer than 32 characters (got: 34)

It's because I've got snapcraft.yaml to grab the version from the manifest, which in this case is a big long string. See https://github.com/parca-dev/parca-agent/blob/main/snap/snapcraft.yaml#L34-L35

It should be safe to merge, in that it'll work fine for actual releases - I can try and make the logic a bit cleverer so it just uses the short hash as the version in cases where the commit isn't tagged at some point

@jnsgruk
Copy link
Contributor

jnsgruk commented Aug 27, 2024

Other option is to have goreleaser configured to do neater versions for unreleased stuff like "0.32.0-next" or "0.34.1-deadbeef"

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

Successfully merging this pull request may close these issues.

3 participants