Skip to content

v0.5.0

Compare
Choose a tag to compare
@github-actions github-actions released this 28 Jul 17:13
· 62 commits to main since this release

Advisory ⚠️

This release breaks the installation of the packer-sdc command using go install github.com/hashicorp/packer-plugin-sdk/cmd/packer-sdc@v0.5.0. Please hold-off upgrading for now, as we work on a fix for this issue and re-release the SDK.

Apologies for the inconvenience.

Upgrade Notes

This release contains changes to the API that introduce compatibility constraints for zclconf/go-cty. Namely, the bundled version of go-cty used by the SDK is now provided via a fork to resolve the encoding/gob incompatibility issue introduced by the breaking change in zclconf/go-cty v1.11.0. Before upgrading we ask that you carefully review this section and refer to packer-plugin-sdk#187 for details on upgrading your plugin dependencies.

  • Gob supported compile time check: we added a Go compile time check to the SDK for validating that a plugins' version of github.com/zclconf/go-cty contains encoding/gob support for cty.Type and cty.Value. GH-189
  • Replaced github.com/zclconf/go-cty with a temporary fork: to avoid introducing a major breaking change to the plugin API, we've created a temporary fork of github.com/zclconf/go-cty containing support for gob encoding to use in place of the upstream go-cty package. Consumers of the Packer plugin SDK now require a replace directive within their plugin's go module file to point to a compatible version of go-cty. The packer-sdc command has been updated to help apply these types of fixes. GH-189
  • Added a fix command to packer-sdc: to help with the manual intervention and future changes to the SDK, we've introduced a fix sub-command to apply the replace directive to your plugin with a recommended version of the fork. GH-190

What's Changed

Breaking Changes 🛠

  • [HPR-1108] Replace gitub.com/zclconf/go-cty@1.12.1 with fork github.com/nywilken/go-cty by @nywilken in #189
  • [HPR-1108] Add compile time check for go-cty by @nywilken in #186

Exciting New Features 🎉

Bug fixes🧑‍🔧 🐞

Doc improvements 📚

  • Remove extra backticks from HTTP server documentation by @edigaryev in #191

Other Changes

  • GHA migration finalisation by @lbajolet-hashicorp in #172
  • SEC-090: Automated trusted workflow pinning (2023-04-21) by @hashicorp-tsccr in #175
  • [COMPLIANCE] Add Copyright and License Headers by @hashicorp-copywrite in #170 #182
  • Update pinned actions to latest trusted versions by @nywilken in #195

New Contributors

  • @hashicorp-tsccr made their first contribution in #175
  • @korli made their first contribution in #184
  • @edigaryev made their first contribution in #191

Full Changelog: v0.4.0...v0.5.0