hashicorp/packer-plugin-sdk

packer-sdc generated files are different on Windows because file paths in the comments are using backslashes

hmalphettes opened this issue · 0 comments

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:

<!-- 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; -->

Ref: hashicorp/packer-plugin-vsphere@70e94bc#diff-c68557015c01dbeacc9625b49c808fcac88653a9960f3fa2758d0ec11b71d277