Skip to content

chore(deps): bump hashicorp/packer-plugin-sdk to v0.6.6#675

Merged
tenthirtyam merged 1 commit intomainfrom
chore(deps)/bump-packer-plugin-sdk
Mar 13, 2026
Merged

chore(deps): bump hashicorp/packer-plugin-sdk to v0.6.6#675
tenthirtyam merged 1 commit intomainfrom
chore(deps)/bump-packer-plugin-sdk

Conversation

@tenthirtyam
Copy link
Copy Markdown
Collaborator

Summary

Bump hashicorp/packer-plugin-sdk from v0.6.0 to v0.6.6.

Includes a required bump to Go 1.24 (1.24.13).

Type

  • fix: Bug Fix
  • feat: Feature or Enhancement
  • docs: Documentation
  • refactor: Refactoring
  • chore: Build, Dependencies, Workflows, etc.
  • other: Other (Please describe.)

Breaking Changes?

  • Yes, there are breaking changes.
  • No, there are no breaking changes.

Tests

  • Tests have been added or updated.
  • Tests have been completed.

Output:

Documentation

  • Documentation has been added or updated.

Issue References

Release Note

Additional Information

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>
@tenthirtyam tenthirtyam added this to the v2.2.0 milestone Mar 13, 2026
@tenthirtyam tenthirtyam self-assigned this Mar 13, 2026
@tenthirtyam tenthirtyam added dependencies Dependencies chore Chore labels Mar 13, 2026
@github-actions github-actions bot added documentation Documentation needs-review Needs Review size/m Relative Sizing: Medium labels Mar 13, 2026
@tenthirtyam tenthirtyam marked this pull request as ready for review March 13, 2026 12:31
@tenthirtyam tenthirtyam requested a review from a team as a code owner March 13, 2026 12:31
Copilot AI review requested due to automatic review settings March 13, 2026 12:31
@tenthirtyam tenthirtyam merged commit 564334e into main Mar 13, 2026
11 checks passed
@tenthirtyam tenthirtyam deleted the chore(deps)/bump-packer-plugin-sdk branch March 13, 2026 12:32
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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-sdk to v0.6.6 and Go to 1.24.13, along with all transitive dependency updates.
  • Regenerate HCL2 spec files reflecting upstream type change for DirPerm from *fs.FileMode to os.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.

tenthirtyam added a commit that referenced this pull request Mar 13, 2026
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>
tenthirtyam added a commit that referenced this pull request Mar 13, 2026
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>
tenthirtyam added a commit that referenced this pull request Mar 13, 2026
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>
tenthirtyam added a commit that referenced this pull request Mar 13, 2026
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>
tenthirtyam added a commit that referenced this pull request Mar 13, 2026
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>
tenthirtyam added a commit that referenced this pull request Mar 13, 2026
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>
@tenthirtyam tenthirtyam removed the needs-review Needs Review label Mar 13, 2026
@github-actions
Copy link
Copy Markdown

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore Chore dependencies Dependencies documentation Documentation size/m Relative Sizing: Medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants