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

Golang package seems broken #2597

Open
mtparet opened this issue Jun 3, 2024 · 3 comments
Open

Golang package seems broken #2597

mtparet opened this issue Jun 3, 2024 · 3 comments
Assignees

Comments

@mtparet
Copy link

mtparet commented Jun 3, 2024

If you compare https://pkg.go.dev/github.com/scaleway/terraform-provider-scaleway/v2@v2.38.3 and https://pkg.go.dev/github.com/scaleway/terraform-provider-scaleway/v2@v2.39.0, you will see scaleway directory is missing.

It seems this PR https://github.com/scaleway/terraform-provider-scaleway/pull/2448/files has caused this issue.

It preventing us using Pulumi because we need latest version to use VPC new routing feature. pulumiverse/pulumi-scaleway#293

@remyleone
Copy link
Member

It is by design. We went with a different architecture for our provider because having all code in a single package was not sustainable from a code ownership point of view. Also this code was not at all covered by any backward compatibility outside of using it with terraform/opentofu. I'm not sure to understand why pulumi is using this import that was not covered by backward compatibility. Have you tried using the CDK from terraform? Is the pulumi plugin communicating with the terraform provider using the official gRPC interface of the provider? We do not maintain the pulumi plugin at all.

@mtparet
Copy link
Author

mtparet commented Jun 5, 2024

My understanding, it is used from pulumi to generate the scaleway provider.

We already use Pulumi for several others Providers and would like to configure Scaleway using Pulumi too.

@ringods
Copy link

ringods commented Jun 6, 2024

We were able to resolve it on the side of the Pulumi provider. We had to set up a Go "shim" in a way to access the Terraform Provider struct which now lives in a Go internal package.

pulumiverse/pulumi-scaleway#296

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants