Skip to content

What should be checked-in to github? #1666

Closed Answered by radeksimko
venkyvb asked this question in Q&A
Discussion options

You must be logged in to vote

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 such dist 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.

should I be committing the .goreleaser.yml and the dist folder before doing the goreleaser command?

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…

Replies: 1 comment 3 replies

Comment options

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

@radeksimko
Comment options

@venkyvb
Comment options

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