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: set correct ldflags #29

Merged
merged 2 commits into from
May 8, 2024

Conversation

sauterp
Copy link
Member

@sauterp sauterp commented May 7, 2024

Description

Previous releases created with goreleaser didn't have the correct buildinfo set

❯ docker run exoscale/csi-driver -version
{DriverVersion:dirty GitCommit: BuildDate: GoVersion:go1.22.2 Compiler:gc Platform:linux/amd64}

Builds done with make aren't affected.

This PR fixes this.

Checklist

(For exoscale contributors)

  • Changelog updated (under Unreleased block)
  • Integration tests OK

Testing

❯ goreleaser release --skip-publish --skip-sign --clean --skip-validate

❯ docker run exoscale/csi-driver -version
{DriverVersion:0.29.5 GitCommit:047b98c BuildDate: GoVersion:go1.22.2 Compiler:gc Platform:linux/amd64}⏎                                                                    

❯ ./dist/exoscale-csi-driver_linux_amd64_v1/exoscale-csi-driver -version
{DriverVersion:0.29.5 GitCommit:047b98c BuildDate: GoVersion:go1.22.2 Compiler:gc Platform:linux/amd64}⏎                                                                    

Copy link
Member

@pierre-emmanuelJ pierre-emmanuelJ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@sauterp sauterp merged commit c5f7837 into main May 8, 2024
1 check passed
@sauterp sauterp deleted the philippsauter/fix-goreleaser-ldflags branch May 8, 2024 13:04
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.

None yet

3 participants