1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-11-06 09:09:29 +02:00

feat: improve git dirty error

also added a /errors page to our docs

closes #2674
This commit is contained in:
Carlos A Becker
2021-11-21 12:47:25 -03:00
parent 3142db6d86
commit 9505cf7054
3 changed files with 29 additions and 4 deletions

View File

@@ -11,7 +11,7 @@ type ErrDirty struct {
}
func (e ErrDirty) Error() string {
return fmt.Sprintf("git is currently in a dirty state, please check in your pipeline what can be changing the following files:\n%v", e.status)
return fmt.Sprintf("git is currently in a dirty state\nPlease check in your pipeline what can be changing the following files:\n%v\nLearn more at https://goreleaser.com/errors/dirty\n", e.status)
}
// ErrWrongRef happens when the HEAD reference is different from the tag being built.