$ make
goreleaser --snapshot --skip-publish --rm-dist
Flag --rm-dist has been deprecated, please use --clean instead
• starting release...
• loading config file file=.goreleaser.yml
⨯ release failed after 0s error=yaml: unmarshal errors:
line 36: field replacements not found in type config.Archive
make: *** [Makefile:3: bin] Error 1
Checking the YAML with goreleaser check produces the same error:
$ goreleaser check
• loading config file file=.goreleaser.yml
⨯ command failed error=yaml: unmarshal errors:
line 36: field replacements not found in type config.Archive
I figured I check the JSONSchema (goreleaser jsonschema) and indeed it looks like the Archive type has no property named replacements:
TL;DR;
archives.replacements
has been deprecated and is now removed in recentgoreleaser
https://goreleaser.com/deprecations/#archivesreplacements and needs to be fixed in the.goreleaser.yml
.Details
When running
make
I get this error:Checking the YAML with
goreleaser check
produces the same error:I figured I check the JSONSchema (
goreleaser jsonschema
) and indeed it looks like theArchive
type has no property namedreplacements
:The error only occurs since a recent goreleaser version but the
archives.replacements
field was deprecated before: https://goreleaser.com/deprecations/#archivesreplacementsApparently others have the same problem: https://github.com/pulumi/pulumi/issues/13312.