goreleaser: error: unexpected false, try --help
Error: goreleaser failed: exit status 1
exit status 255
Exited with code 1
Not in the mood to debug the above right now.
/cc @caarlos0 does the above error message ring a bell?
seems like an usage error, what flags are you using?
--rm-dist --release-notes releaseNotesFile --skip-publish=true
Looking at the above, I assume it is the last. But it did work, and ... I build those flags dynamically.
yeah, I was able to reproduce here:
$ go run main.go --skip-publish=true
main: error: unexpected true, try --help
exit status 1
maybe something on alecthomas/kingpin :/
Will have a look later today.
Will have a look later today.
No rush, I can easily work around it.
@caarlos0 but can I ask you a Goreleaser question:
go build -ldflags "-extldflags '-static"
I cannot get the above ldflags (i.e. quotes) to work ... I.e. they work when I build directly, but not via Goreleaser.
I think there is a ' missing?
I just tried here:
ldflags: "-extldflags '-static'"
and it works...
I cannot get it to work (I botched with the example above). It works fine when I build outside Goreleaser.
This is my complete ldflags string (I have tested variations of the below)
ldflags: -s -w -X github.com/gohugoio/hugo/hugolib.BuildDate={{.Date}} "-extldflags '-static'"
I assume some quotes are eaten.
But this seems to work:
ldflags:
- -s -w -X github.com/gohugoio/hugo/hugolib.BuildDate={{.Date}}
- "-extldflags '-static'"
Helps to read the docs...
Nice :D
Most helpful comment
No rush, I can easily work around it.