Skip to content

packer-sdc struct-markdown is stuck doing nothing #169

@panekj

Description

@panekj

Overview of the Issue

Using below code with go generate -v -x

//go:generate packer-sdc struct-markdown
//go:generate packer-sdc mapstructure-to-hcl2 -type ProvisionerConfig

will get stuck forever doing nothing

❯ go generate -v -x
data.go
packer-sdc mapstructure-to-hcl2 -type DataSourceOutput,DataSourceConfig
data.hcl2spec.go
main.go
post-processor.go
packer-sdc mapstructure-to-hcl2 -type PostProcessorConfig
post-processor.hcl2spec.go
provisioner.go
packer-sdc struct-markdown

Reproduction Steps

git clone https://git.panekj.dev/pj/packer-plugin-http.git
cd packer-plugin-http
go generate -v -x

Packer Plugin SDK version

packersdk.Version

❯ packer-sdc --version
0.4.0
require (
	github.com/hashicorp/hcl/v2 v2.14.1
	github.com/hashicorp/packer-plugin-sdk v0.4.0
	github.com/zclconf/go-cty v1.10.0
	golang.org/x/net v0.8.0
)

Same thing happening on 0.3.4

Operating system and Environment details

OS: macOS 13.1
Architecture: arm64

❯ go version
go version go1.20.2 darwin/arm64

can reproduce it on Ubuntu 22.04 x64

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions