github.com/goreleaser/goreleaser@v1.25.1/www/docs/errors/dirty.md (about) 1 # Git is in a dirty state 2 3 GoReleaser requires a clean git state to work. 4 5 If you see this error, it means that something in your build process is either 6 creating or editing files before GoReleaser is called. The error message should 7 show you, which files were created/modified. 8 9 Here's an example error: 10 11 ```sh 12 тип release failed after 0.02s error=git is currently in a dirty state 13 Please check in your pipeline what can be changing the following files: 14 M modified.go 15 ?? created.txt 16 17 Learn more at https://goreleaser.com/errors/dirty 18 ``` 19 20 From here on, you have a couple of options: 21 22 - add the file to `.gitignore` (recommended if the file is temporary and/or 23 generated); 24 - change your build process to not touch any git tracked files. 25 - if you are running `goreleaser build`, you might want to add either the 26 `--snapshot` or `--skip-validate` flags to it