You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running packer-sdc on Windows changes all files previously generated from a Unix OS.
Some comment sin the generated code contains file paths.
Packer Plugin SDK version and OS
From packersdk 0.2.11 on Windows 11
Reproduction Steps
Checkout an packer plugin source code and run packer-sdc as documented in packer-plugin-sdk.
On Unix:
<!-- Code generated from the comments of the GlobalRoutingSettings struct in builder/vsphere/clone/step_customize.go; DO NOT EDIT MANUALLY -->
...
<!-- End of code generated from the comments of the GlobalRoutingSettings struct in builder/vsphere/clone/step_customize.go; -->
Is rewritten by packer-sdc on Windows:
<!-- Code generated from the comments of the GlobalRoutingSettings struct in builder\vsphere\clone\step_customize.go; DO NOT EDIT MANUALLY -->
...
<!-- End of code generated from the comments of the GlobalRoutingSettings struct in builder\vsphere\clone\step_customize.go; -->
hmalphettes
changed the title
packer-sdc generated files are different on Windows because file paths in the comments are using backslash
packer-sdc generated files are different on Windows because file paths in the comments are using backslashes
Apr 16, 2022
Overview of the Issue
Running packer-sdc on Windows changes all files previously generated from a Unix OS.
Some comment sin the generated code contains file paths.
Packer Plugin SDK version and OS
From packersdk 0.2.11 on Windows 11
Reproduction Steps
Checkout an packer plugin source code and run packer-sdc as documented in packer-plugin-sdk.
On Unix:
Is rewritten by packer-sdc on Windows:
Ref: hashicorp/packer-plugin-vsphere@70e94bc#diff-c68557015c01dbeacc9625b49c808fcac88653a9960f3fa2758d0ec11b71d277
The text was updated successfully, but these errors were encountered: