Closed jamietanna closed 11 months ago
Hi @jamietanna, thanks for reporting this. This is caused by the plugin bundling the goreleaser binary (currently v1.21.2), which does not support the version config yet.
I will update goreleaser later today, so this should fix this issue.
Thanks! It's not super problematic for me, as I've simply removed version
for now :smile:
Actually out of interest, why do we vendor the goreleaser codebase instead of pulling it in as a dependency?
We have to access some internal packages of goreleaser, which is only possible by checking-in the source code.
I have updated the GoReleaser dependency to v1.23.0 https://github.com/go-semantic-release/hooks-goreleaser/releases/tag/v1.8.0
Ah interesting - is it something we'd be able to ask upstream to open up? Or anything we can get at with reflection?
We are accessing the internal GoReleaser pipeline to modify the release version, as GoReleaser relies only on git tags as version source. https://github.com/go-semantic-release/hooks-goreleaser/blob/main/pkg/hooks/goreleaser.go#L46
I can absolutely understand the reasoning why the maintainers of GoReleaser decided to use internal packages for that, so probably not worth asking to change that.
When using
goreleaser
version 1.22.1, and following https://goreleaser.com/quick-start/, runninggoreleaser init
, we receive the following configuration:When we run
semantic-release
(version v2.29.0), we receive the following error:Ideally we would not fail for unexpected configuration, but I can imagine this may also be to protect us from running potentially newer version of
goreleaser
than we're expecting?