1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-03-25 21:29:14 +02:00
John Maguire 7468cf8556
docs: update dirty.md deprecated syntax (#4766)
<!--

Hi, thanks for contributing!

Please make sure you read our CONTRIBUTING guide.

Also, add tests and the respective documentation changes as well.

-->


<!-- If applied, this commit will... -->

Change `--skip-validate` in a doc file to `--skip=validate`.

<!-- Why is this change being made? -->

Running the command with `--skip-validate` produces the following
warning:

> • DEPRECATED: --skip-validate was deprecated in favor of
--skip=validate, check https://goreleaser.com/deprecations#-skip for
more details

<!-- # Provide links to any relevant tickets, URLs or other resources
-->
2024-04-07 23:05:46 -03:00

865 B

Git is in a dirty state

GoReleaser requires a clean git state to work.

If you see this error, it means that something in your build process is either creating or editing files before GoReleaser is called. The error message should show you, which files were created/modified.

Here's an example error:

   ⨯ release failed after 0.02s error=git is currently in a dirty state
Please check in your pipeline what can be changing the following files:
 M modified.go
?? created.txt

Learn more at https://goreleaser.com/errors/dirty

From here on, you have a couple of options:

  • add the file to .gitignore (recommended if the file is temporary and/or generated);
  • change your build process to not touch any git tracked files.
  • if you are running goreleaser build, you might want to add either the --snapshot or --skip=validate flags to it