Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[sdkgen/go] Circular import in go sdkgen test #11567

Open
justinvp opened this issue Dec 6, 2022 · 0 comments
Open

[sdkgen/go] Circular import in go sdkgen test #11567

justinvp opened this issue Dec 6, 2022 · 0 comments
Labels
area/codegen SDK-gen, program-gen, convert kind/bug Some behavior is incorrect or out of spec language/go

Comments

@justinvp
Copy link
Member

justinvp commented Dec 6, 2022

#11494 updates the Provider resource to reference a type defined in the config module, but setting "importBasePath": "provider-config-schema/configstation" in the schema for "go" leads to having an empty import in pkg/codegen/testing/test/testdata/provider-config-schema/go/configstation/config/config.go:

"provider-config-schema/configstation"

Which then causes the following error when importing "provider-config-schema/configstation/config" in pkg/codegen/testing/test/testdata/provider-config-schema/go/configstation/provider.go:

imports provider-config-schema/configstation/config
imports provider-config-schema/configstation: import cycle not allowed
@justinvp justinvp added kind/bug Some behavior is incorrect or out of spec language/go area/codegen SDK-gen, program-gen, convert labels Dec 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/codegen SDK-gen, program-gen, convert kind/bug Some behavior is incorrect or out of spec language/go
Projects
None yet
Development

No branches or pull requests

1 participant