fallback to hashicorp namespace if none is passed in go provider generation #728
Labels
core-parity
Better experience in Terraform Core than CDKTF
enhancement
New feature or request
language/golang
priority/important-longterm
Medium priority, to be worked on within the following 1-2 business quarters.
providers
Community Note
Description
Imports for generated providers in Go are currently nested according to their namespace.
So, for example:
However, this only happens if the namespace is explicitly passed in
cdktf.json
:As the shorthand without the prefix
hashicorp/
is also allowed for official providers, this:should also result in the same import to work.
But, as the implementation currently does not fall back to
hashicorp
for an empty namespace, it results in generated code that needs to be imported from another directory:It should always have the same import name.
References
The text was updated successfully, but these errors were encountered: