-
First, thanks a lot for this wonderful tool. I have unsuccessfully tried to define something like follows in by .goreleaser.yml file:
however it seems like this does not work (error during go build with bad parameter in link phase) and was not able to find any clue in the issues/discussions/code of this repository |
Beta Was this translation helpful? Give feedback.
Answered by
caarlos0
Jul 1, 2020
Replies: 1 comment
-
inside the yaml its not possible, no. you can do it before running goreleaser though: GIT_BRANCH=$(git rev-parse --abbrev-ref HEAD || echo 'n/a') GIT_REVISION=$(git describe --always --tags --dirty || echo 'n/a') GO_BUILD_DATE=$(date -u +%FT%T) goreleaser release --rm-dist also note that the revision and date are already available as template variables: https://goreleaser.com/customization/templates/ |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
caarlos0
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
inside the yaml its not possible, no.
you can do it before running goreleaser though:
also note that the revision and date are already available as template variables: https://goreleaser.com/customization/templates/