chore(deps): bump hashicorp/packer-plugin-sdk to v0.6.6#675
Conversation
Bump `hashicorp/packer-plugin-sdk` from v0.6.0 to v0.6.6. Includes a required bump to Go 1.24 (1.24.13). Signed-off-by: Ryan Johnson <ryan.johnson@broadcom.com>
There was a problem hiding this comment.
Pull request overview
This PR bumps the hashicorp/packer-plugin-sdk dependency from v0.6.0 to v0.6.6 and updates the Go version from 1.23.12 to 1.24.13. Transitive dependencies (AWS SDK v2, golang.org/x packages, etc.) are updated accordingly, and auto-generated code/docs are regenerated.
Changes:
- Bump
packer-plugin-sdkto v0.6.6 and Go to 1.24.13, along with all transitive dependency updates. - Regenerate HCL2 spec files reflecting upstream type change for
DirPermfrom*fs.FileModetoos.FileMode. - Regenerate web documentation with newly populated SSH tunnel descriptions from the updated SDK.
Reviewed changes
Copilot reviewed 7 out of 8 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| go.mod | Bumps Go version, SDK version, and adds new indirect dependencies (AWS SDK v2, go-winio, etc.) |
| go.sum | Corresponding checksum updates for all dependency changes |
| builder/vsphere/common/output_config.hcl2spec.go | Regenerated: DirPerm type changed from *fs.FileMode to os.FileMode, import changed from io/fs to os |
| builder/vsphere/common/step_export.hcl2spec.go | Regenerated: same DirPerm type change as above |
| README.md | Updates required Go version to 1.24.13 |
| .web-docs/components/builder/vsphere-iso/README.md | Regenerated SSH tunnel documentation from SDK |
| .web-docs/components/builder/vsphere-clone/README.md | Regenerated SSH tunnel documentation from SDK |
| .web-docs/components/builder/vsphere-supervisor/README.md | Regenerated SSH tunnel documentation from SDK |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
Note: Required after the update to `hashicorp/packer-plugin-sdk` v0.6.6. Change `DirPerm` in `OutputConfig` from `os.FileMode` to `*os.FileMode` so that HCL2 can correctly represent the field as optional/nullable. When `directory_permission` is not set in a onfiguration, the packer-sdc generated flat struct receives a cty null value for the field. Assigning a cty null to a non-pointer `os.FileMode` causes a runtime panic: "null value is not allowed". Using a pointer type allows the field to be nil when omitted, which is handled in `Prepare()` by falling back to the default permission of `0750`. The corresponding generated `hcl2spec.go` files (`output_config` and `step_export`) are updated to mirror the pointer type. Because the pointer is now declared in the source struct, future runs of `make generate` will regenerate these files with `*os.FileMode`. Fixes: - Runtime error: null value is not allowed [directory_permission] - Build error: cannot use DirPerm (type *os.FileMode) as os.FileMode Ref: #675 Signed-off-by: Ryan Johnson <ryan.johnson@broadcom.com>
Note: Required after the update to `hashicorp/packer-plugin-sdk` v0.6.6. Change `DirPerm` in `OutputConfig` from `os.FileMode` to `*os.FileMode` so that HCL2 can correctly represent the field as optional/nullable. When `directory_permission` is not set in a onfiguration, the packer-sdc generated flat struct receives a cty null value for the field. Assigning a cty null to a non-pointer `os.FileMode` causes a runtime panic: "null value is not allowed". Using a pointer type allows the field to be nil when omitted, which is handled in `Prepare()` by falling back to the default permission of `0750`. The corresponding generated `hcl2spec.go` files (`output_config` and `step_export`) are updated to mirror the pointer type. Because the pointer is now declared in the source struct, future runs of `make generate` will regenerate these files with `*os.FileMode`. Fixes: - Runtime error: null value is not allowed [directory_permission] - Build error: cannot use DirPerm (type *os.FileMode) as os.FileMode Ref: #675 Signed-off-by: Ryan Johnson <ryan.johnson@broadcom.com>
Note: Required after the update to `hashicorp/packer-plugin-sdk` v0.6.6. Change `DirPerm` in `OutputConfig` from `os.FileMode` to `*os.FileMode` so that HCL2 can correctly represent the field as optional/nullable. When `directory_permission` is not set in a onfiguration, the packer-sdc generated flat struct receives a cty null value for the field. Assigning a cty null to a non-pointer `os.FileMode` causes a runtime panic: "null value is not allowed". Using a pointer type allows the field to be nil when omitted, which is handled in `Prepare()` by falling back to the default permission of `0750`. The corresponding generated `hcl2spec.go` files (`output_config` and `step_export`) are updated to mirror the pointer type. Because the pointer is now declared in the source struct, future runs of `make generate` will regenerate these files with `*os.FileMode`. Fixes: - Runtime error: null value is not allowed [directory_permission] - Build error: cannot use DirPerm (type *os.FileMode) as os.FileMode Ref: #675 Signed-off-by: Ryan Johnson <ryan.johnson@broadcom.com>
Note: Required after the update to `hashicorp/packer-plugin-sdk` v0.6.6. Change `DirPerm` in `OutputConfig` from `os.FileMode` to `*os.FileMode` so that HCL2 can correctly represent the field as optional/nullable. When `directory_permission` is not set in a onfiguration, the packer-sdc generated flat struct receives a cty null value for the field. Assigning a cty null to a non-pointer `os.FileMode` causes a runtime panic: "null value is not allowed". Using a pointer type allows the field to be nil when omitted, which is handled in `Prepare()` by falling back to the default permission of `0750`. The corresponding generated `hcl2spec.go` files (`output_config` and `step_export`) are updated to mirror the pointer type. Because the pointer is now declared in the source struct, future runs of `make generate` will regenerate these files with `*os.FileMode`. Fixes: - Runtime error: null value is not allowed [directory_permission] - Build error: cannot use DirPerm (type *os.FileMode) as os.FileMode Ref: #675 Signed-off-by: Ryan Johnson <ryan.johnson@broadcom.com>
Note: Required after the update to `hashicorp/packer-plugin-sdk` v0.6.6. Change `DirPerm` in `OutputConfig` from `os.FileMode` to `*os.FileMode` so that HCL2 can correctly represent the field as optional/nullable. When `directory_permission` is not set in a onfiguration, the packer-sdc generated flat struct receives a cty null value for the field. Assigning a cty null to a non-pointer `os.FileMode` causes a runtime panic: "null value is not allowed". Using a pointer type allows the field to be nil when omitted, which is handled in `Prepare()` by falling back to the default permission of `0750`. The corresponding generated `hcl2spec.go` files (`output_config` and `step_export`) are updated to mirror the pointer type. Because the pointer is now declared in the source struct, future runs of `make generate` will regenerate these files with `*os.FileMode`. Fixes: - Runtime error: null value is not allowed [directory_permission] - Build error: cannot use DirPerm (type *os.FileMode) as os.FileMode Ref: #675 Signed-off-by: Ryan Johnson <ryan.johnson@broadcom.com>
Note: Required after the update to `hashicorp/packer-plugin-sdk` v0.6.6. Change `DirPerm` in `OutputConfig` from `os.FileMode` to `*os.FileMode` so that HCL2 can correctly represent the field as optional/nullable. When `directory_permission` is not set in a onfiguration, the packer-sdc generated flat struct receives a cty null value for the field. Assigning a cty null to a non-pointer `os.FileMode` causes a runtime panic: "null value is not allowed". Using a pointer type allows the field to be nil when omitted, which is handled in `Prepare()` by falling back to the default permission of `0750`. The corresponding generated `hcl2spec.go` files (`output_config` and `step_export`) are updated to mirror the pointer type. Because the pointer is now declared in the source struct, future runs of `make generate` will regenerate these files with `*os.FileMode`. Fixes: - Runtime error: null value is not allowed [directory_permission] - Build error: cannot use DirPerm (type *os.FileMode) as os.FileMode Ref: #675 Signed-off-by: Ryan Johnson <ryan.johnson@broadcom.com>
|
This functionality has been released in v2.1.2 of the plugin. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
Summary
Bump
hashicorp/packer-plugin-sdkfrom v0.6.0 to v0.6.6.Includes a required bump to Go 1.24 (1.24.13).
Type
fix: Bug Fixfeat: Feature or Enhancementdocs: Documentationrefactor: Refactoringchore: Build, Dependencies, Workflows, etc.other: Other (Please describe.)Breaking Changes?
Tests
Output:
Documentation
Issue References
Release Note
Additional Information