Skip to content

How to set -ldflags values for each target in Goreleaser? #1709

Answered by caarlos0
adityakrgupta25 asked this question in Q&A
Discussion options

You must be logged in to vote

the problem with this is that the hook will not export the envs to the build it self...

if you want to do that, you should probably run like ./variables.sh && goreleaser --etc

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@bradleyjames
Comment options

Answer selected by caarlos0
Comment options

You must be logged in to vote
3 replies
@vvrnv
Comment options

@caarlos0
Comment options

@vvrnv
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants