Closed F21 closed 1 month ago
You have to use the latest plugin version (3.2.10) in your packer plugin configuration
I am using:
goss = {
version = "~> 3.2"
source = "github.com/YaleUniversity/goss"
}
From testing locally, I don't think main.Version
is being set correctly in goreleaser's ldflags config.
Will check asap, something is going on I tested the release CI assets a few times but I guess one PR messed with the goreleaser config ..
I don't think it was ever working properly before. Looking at the history of .goreleaser.yml
, these 2 lines have never changed:
I think the version has always been set to 0.0.1
and packer has only started enforcing the version check in the 1.11.z
release.
Yeah seems likes it but a local packer init has always worked for me. But will investigate later and hopefully fix it for good
The plugin version check was only released in Packer 1.11.0, which was released a few days ago. See:
Oh that makes sense! Thanks for investigating
When trying to initialize the plugin with Packer 1.11.z, I get the following error:
It seems there's an issue with setting the version number using ldflags in Goreleaser: https://github.com/YaleUniversity/packer-plugin-goss/blob/master/main.go#L14