Goreleaser NFPMS build Issue #1627
-
@caarlos0 i am using nfpms: to generate debian build for go package and i am able to customize the debian name when generating but the control file is appending -SNAPSHOT-<random_hash> While installing debian on the linux the version field comes with -SNAPSHOT-<random_hash> how can i fix the control file of debian to not append this SNAPSHOT |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
its not a random hash, is the commit sha. you're running with anyway you can customize the snapshot version: https://goreleaser.com/customization/snapshots/ |
Beta Was this translation helpful? Give feedback.
-
so you mean running this way
|
Beta Was this translation helpful? Give feedback.
-
@caarlos0 is there any way to append exact version to be displayed in the dpkg -s when doing release build? Say my tag is 1.0.0-b1-noc and i made a release build of debian and install in the linux (say my debian pkg name is go-broker)
Later i run to check if it installed and whats the version
It appends in different format.. Is it possible to show exact version like 1.0.0-b1-noc |
Beta Was this translation helpful? Give feedback.
its not a random hash, is the commit sha.
you're running with
--snapshot
, on production that would not happen...anyway you can customize the snapshot version: https://goreleaser.com/customization/snapshots/