Skip to content

Commit 1e3f5c4

Browse files
authored
Use packer-sdc in packer + remove mapstructure-to-hcl2 & struct-markdown (#10913)
* start using `go:generate packer-sdc struct-markdown` * Update Makefile remove @go install ./cmd/struct-markdown * run go generate for struct-markdown * use //go:generate packer-sdc mapstructure-to-hcl2 * run go generate for mapstructure-to-hcl2 * remove struct-markdown and mapstructure-to-hcl2 * vendor vendors
1 parent acd8c9f commit 1e3f5c4

6 files changed

Lines changed: 7 additions & 7 deletions

File tree

builder/tencentcloud/cvm/access_config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//go:generate struct-markdown
1+
//go:generate packer-sdc struct-markdown
22

33
package cvm
44

builder/tencentcloud/cvm/builder.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//go:generate mapstructure-to-hcl2 -type Config
1+
//go:generate packer-sdc mapstructure-to-hcl2 -type Config
22

33
package cvm
44

builder/tencentcloud/cvm/builder.hcl2spec.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

builder/tencentcloud/cvm/image_config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//go:generate struct-markdown
1+
//go:generate packer-sdc struct-markdown
22

33
package cvm
44

builder/tencentcloud/cvm/run_config.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
//go:generate struct-markdown
2-
//go:generate mapstructure-to-hcl2 -type tencentCloudDataDisk
1+
//go:generate packer-sdc struct-markdown
2+
//go:generate packer-sdc mapstructure-to-hcl2 -type tencentCloudDataDisk
33

44
package cvm
55

builder/tencentcloud/cvm/run_config.hcl2spec.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)