What should be checked-in to github? #1666
-
I am trying out goreleaser for a new go-project that I am working on. I ran the Then I ran However when I try to run
Am I missing a step here (should I be committing the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Generally
Yes, the error you pasted above is related to the fact that you made changes in your config, but haven't yet committed them (hence left git in "dirty state") which in turn makes it impossible for git (an in turn GoReleaser) to uniquely identify the build that it would produce - there is no commit SHA. That is why even for snapshots everything has to be committed as snapshots are identified by SHA (unlike full builds which are identified by tags). |
Beta Was this translation helpful? Give feedback.
Generally
dist
is only a (temporary) folder where GoReleaser stores artifacts such as binaries or archives, before publishing them e.g. to GitHub via the API. As suchdist
folder would typically not be checked-in and you may even go as far as putting it into.gitignore
..goreleaser.yml
on the other hand is the config, which does need to be checked-in.Yes, the error you pasted above is related to the fact that you made changes in your config, but haven't yet committed them (hence left git in "dirty state") which in turn makes it impossible for git (an in turn GoReleaser) to uniquely ident…