Skip to content

fix: use .Tag in goreleaser tag template #180

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

Merged
merged 1 commit into from
Mar 20, 2025
Merged

Conversation

obs-gh-mattcotter
Copy link
Collaborator

Description

Using {{ .CurrentTag }} failed in the latest release: https://github.com/observeinc/observe-agent/actions/runs/13976540750/job/39131810187

CurrentTag came from the goreleaser release github docs: https://goreleaser.com/customization/release/#github

Looking at the code, I wonder if the actual value ought to be {{ .Git.CurrentTag }}. But there are no uses of CurrentTag in templates in their repo.

Many of their tests reference Tag, which is detailed in the docs here: https://goreleaser.com/customization/templates/#common-fields

I was convinced by the use of Tag in their tests, so that's what I decided to try first. Unfortunately this release.tag feature is only available in pro, so I can't read the code and find the answer that way.

@obs-gh-mattcotter obs-gh-mattcotter merged commit 8e905e1 into main Mar 20, 2025
8 checks passed
@obs-gh-mattcotter obs-gh-mattcotter deleted the mc/release-tag branch March 20, 2025 20:25
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.

2 participants