Releases: hashicorp/packer-plugin-sdk
v0.5.4
Upgrade notes
Upgrading to this release may fail until you've applied one of the fixes documented in #187 (comment). Consumers of the Packer plugin SDK require a replace directive within their plugin's go module file to point to a compatible version of go-cty.
The replace directive subject to change in future releases can be applied by running the packer-sdc fix sub-command to apply the replace directive to your plugin with a recommended version of the go-cty fork.
Plugins already working with Packer Plugin SDK v0.5.2 are advised to apply the updated SDK fixes by re-running packer-sdc fix
against the plugin's root directory.
What's Changed
Doc improvements 📚
- communicator: fix reference to ssh_method in docs by @lbajolet-hashicorp in #243
Other Changes
- Release 0.5.3 by @lbajolet-hashicorp in #232
- version: don't remake semVer if not nil by @lbajolet-hashicorp in #233
- [COMPLIANCE] Add Copyright and License Headers by @hashicorp-copywrite in #235
- Bump actions/checkout to address Node.js 16 deprecation issues by @nywilken in #237
- Bump actions/setup-go to address Node.js 16 deprecation issues by @nywilken in #238
- Bump goreleaser action to address Node.js 16 deprecation issues by @nywilken in #239
- Update all tsccr approved actions by @nywilken in #240
- Bump github.com/hashicorp/go-getter/v2 modules to v2.2.2 by @nywilken in #241
- Makefile: replace enumer upstream with dmarkham's by @lbajolet-hashicorp in #242
- Fix ipv6 addresses format by @jooola in #246
- Bump vault api dependancy to mitigate go-jose concerns, removes support for go1.20 by @JenGoldstrich in #247
- Bump dependencies to address govulncheck reported vulnerabilities by @nywilken in #248
- Update Go version must be a concrete installable version by @nywilken in #250
- Cut release 0.5.4 by @nywilken in #251
New Contributors
- @jooola made their first contribution in #246
- @JenGoldstrich made their first contribution in #247
Full Changelog: v0.5.3...v0.5.4
v0.5.3
Upgrade notes
Upgrading to this release may fail until you've applied one of the fixes documented in #187 (comment). Consumers of the Packer plugin SDK require a replace directive within their plugin's go module file to point to a compatible version of go-cty.
The replace directive subject to change in future releases can be applied by running the packer-sdc fix sub-command to apply the replace directive to your plugin with a recommended version of the go-cty fork.
Plugins already working with Packer Plugin SDK v0.5.2 are advised to apply the updated SDK fixes by re-running packer-sdc fix
against the plugin's root directory.
What's Changed
Exciting New Features 🎉
- Ui: add format-string alternatives to functions by @lbajolet-hashicorp in #225
- Version parsing rehaul by @lbajolet-hashicorp in #228
Other Changes
- Bump golang.org/x/crypto to address CVE-2023-48795 by @nywilken in #220
Full Changelog: v0.5.2...v0.5.3
v0.5.2
Upgrade Notes
Upgrading to this release may fail until you've applied one of the fixes documented in packer-plugin-sdk#187. Consumers of the Packer plugin SDK require a replace directive within their plugin's go module file to point to a compatible version of go-cty. The replace directive subject to change in future releases can be applied by running the packer-sdc fix
sub-command to apply the replace directive to your plugin with a recommended version of the go-cty fork.
Plugins already working with Packer Plugin SDK v0.5.1 are advised to apply the updated SDK fixes by re-running packer-sdc fix
against the plugin's root directory. The updated SDK fixes will bump the supported version of the go-cty fork to v1.13.3, which is required for working with hcl/v2 version 2.17.0 and above.
- Bumped github.com/zclconf/go-cty to v1.13.1: to bring in the latest supported changes of zclconf/go-cty and hashicorp/hcl/v2 to the SDK.
- Bumped github.com/hashicorp/hcl/v2 to v2.19.1: to bring in support for the latest HCL/v2 refinements builder and enhancements. Refinements are non-breaking changes but you may see some changed results in your unit test of operations involving unknown values.
- Updated
packer-sdc fix
: to upgrade the replace version for github.com/nywilken/go-cty from v1.12.1 to v1.13.3.
What's Changed
Exciting New Features 🎉
- Add capability to specify additional build args to be executed when running acceptance tests against builders by @lbajolet-hashicorp in #202
- Bump supported version of go-cty to v1.13.3 by @nywilken in #215
Security Changes
- Bump go-getter to v2.2.1 by @zliang-akamai in #200
- Address reported CVEs along with Go toolchain vulnerabilities by @nywilken in #208, #213
Bug Fixes🧑🔧 🐞
- Fix issue where packer-sdc mapstructure-to-hcl was incorrectly mixing underlying structs for types with similar mapstructure tags by @nywilken in #212
- hcl2helper: preemptively panic on nil hcl spec by @lbajolet-hashicorp in #204
Other Changes
- packer-sdc/struct-markdown: Allow packer-internal as project directory for testing purposes by @nywilken in #218
New Contributors
- @zliang-akamai made their first contribution in #200
Full Changelog: v0.5.1...v0.5.2
v0.5.1
Upgrade Notes
This release is a fast follow to v0.5.0, which broke the installation of the packer-sdc command due to an invalid go.mod file. The v0.5.0 release has been retracted and should not be used. Consumers of the Packer Plugin SDK should update to v0.5.1. Upgrading to this release will fail until you've applied one of the fixes documented in packer-plugin-sdk#187. We ask that you carefully review this section for details on the released changes.
- Retracted v0.5.0: the v0.5.0 SDK release was broken because of the replace statement for go-cty. #199
- 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. #189 - Bumped the github.com/zclconf/go-cty to v1.12.1: to bring in the latest supported changes of zclconf/go-cty and hashicorp/hcl/v2 to the SDK. 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. #197
- 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 go-cty fork. #190, #198
What's Changed
Bug fixes🧑🔧 🐞
- Fix replace go mod by @lbajolet-hashicorp in #197
- packer-sdc: Remove version specific Go code by @nywilken in #198
Other Changes
- go.mod: retract v0.5.0 by @lbajolet-hashicorp in #199
Full Changelog: v0.5.0...v0.5.1
v0.5.0
Advisory ⚠️
This release breaks the installation of the packer-sdc
command using go install github.com/hashicorp/packer-plugin-sdk/cmd/[email protected]
. 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/[email protected] 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🧑🔧 🐞
- [HPR-1108] Replace gitub.com/zclconf/[email protected] with fork github.com/nywilken/go-cty by @nywilken in #189
- [HPR-1100] Add basic test for commonServer.ConfigSpec by @nywilken in #176
- communicator: don't set bastion cert if key is set by @lbajolet-hashicorp in #174
- ssh: improve debug logging by @lbajolet-hashicorp in #181
- Fix menu boot command vnc key stroke by @korli in #184
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
v0.4.0
Notes
Previously the sub-command packer-sdc mapstructure-to-hcl
would ignore duplicate fields in the generated HCL schema file, which sometimes resulted in configuration input attributes being removed from the schema. The command has been updated to error, as opposed to warn, when a duplicate possible conflicting mapstructure field is found to aid plugin developers. We've marked this release a minor release because the new behavior may be breaking to some plugin components. Any new reported conflicting input attributed should be rename or consolidated if possible. GH-164
What's Changed
Bug fixes🧑🔧 🐞
- Update github.com/hashicorp/go-getter/v2 pkgs to address CVE-2023-0475 by @nywilken in #162
- packer-sdc: return errors on duplicate tag/field by @lbajolet-hashicorp in #164
- Update golang.org/x/net to address GO-2023-1571 by @nywilken in #166
Doc improvements 📚
- Update environment variables URL in error message by @nywilken in #159
- ssh: add warnings on DSA usage by @lbajolet-hashicorp in #158
Other Changes
- Remove ioutil in favour of io and os packages and exclude crypto/dsa … by @rossmaclean in #153
- Replace circle-ci test with GitHub actions by @nywilken in #167
Full Changelog: v0.3.4...v0.4.0
v0.3.4
What's Changed
Bug fixes🧑🔧 🐞
- shell-local: fix supported_os error check by @lbajolet-hashicorp in #155
Other Changes
- version: release v0.3.4 of the SDK by @lbajolet-hashicorp in #156
Full Changelog: v0.3.3...v0.3.4
v0.3.3
What's Changed
Bug fixes🧑🔧 🐞
- ssh: fix DownloadDir empty response check by @lbajolet-hashicorp in #147
Doc improvements 📚
Other Changes
- [COMPLIANCE] Update MPL 2.0 LICENSE by @hashicorp-copywrite in #133
- Update docs links by @sylviamoss in #138
- [COMPLIANCE] Add Copyright and License Headers by @hashicorp-copywrite in #145
- communicator: add note to docs on protocol/Windows by @lbajolet-hashicorp in #146
- Fix some linting warnings. by @rossmaclean in #149
New Contributors
- @hashicorp-copywrite made their first contribution in #133
- @rossmaclean made their first contribution in #149
Full Changelog: v0.3.2...v0.3.3
v0.3.2
What's Changed
Exciting New Features 🎉
- sdk: Bump SDK to Go 1.18 by @nywilken in #121
- Provision SSHPublicKey while use custom SSH Private key by @GennadySpb in #101
Bug fixes🧑🔧 🐞
- Fix support for forward slashes with nested folders in cd_files for Windows by @tempora-mutantur in #115
Doc improvements 📚
- communicator: fix SSH config typo by @lbajolet-hashicorp in #124
Other Changes
- Remove release script in favor of goreleaser by @nywilken in #118
- Update Xcode version for Darwin test builds by @nywilken in #122
- Make ed25519 keys generated by Packer serialize in the format usable by ssh by @nikolaymatrosov in #120
- Logging ssh bastion by @lbajolet-hashicorp in #123
- Update release version v0.3.2 by @nywilken in #129
New Contributors
- @nikolaymatrosov made their first contribution in #120
- @GennadySpb made their first contribution in #101
Full Changelog: v0.3.1...v0.3.2
v0.3.1
NOTES
There's been a change in the way the ssh_timeout
option and the ssh_handshake_attempts
work together, the behaviour is unchanged if both or none are specified, however if only one of the two is set, the other won't have a default value anymore and will be ignored.
What's Changed
Other Changes
- release: move to goreleaser/actions for releases by @lbajolet-hashicorp in #113
- Bump github.com/hashicorp/hcl/v2 from 2.12.0 to 2.13.0 by @dependabot in #112
- Change step_create_cdrom_tests to pass on Windows by @tempora-mutantur in #114
- ssh: only rely on timeout/retries if one is set by @lbajolet-hashicorp in #116
New Contributors
- @tempora-mutantur made their first contribution in #114
Full Changelog: v0.3.0...v0.3.1