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

Issues when trying to use the provider in golang #90

Closed
victorlcm opened this issue Jun 10, 2024 · 3 comments · Fixed by #109
Closed

Issues when trying to use the provider in golang #90

victorlcm opened this issue Jun 10, 2024 · 3 comments · Fixed by #109
Assignees

Comments

@victorlcm
Copy link

Hi,

I'm getting the error go: module github.com/Twingate/pulumi-twingate@upgrade found (v3.0.4+incompatible), but does not contain package github.com/Twingate/pulumi-twingate/sdk/go/twingate when trying to install the provider in my Pulumi project using the golang sdk. Can someone help with this?

Thanks!

@twingate-blee
Copy link
Member

I was not able to reproduce the issue. Does the example at https://github.com/Twingate/pulumi-twingate/tree/main/examples/go work for you?

@knmsk
Copy link

knmsk commented Jul 11, 2024

I have the same error here, I've tried to get the package using go get github.com/Twingate/pulumi-twingate/sdk/v3 but the output is module github.com/Twingate/pulumi-twingate@upgrade found (v3.0.6+incompatible), but does not contain package github.com/Twingate/pulumi-twingate/sdk.

The steps to reproduce the error in my case:

  1. Clone https://github.com/pulumi/pulumi-component-provider-go-boilerplate (component builder for golang)
  2. Update the go.mod file with Golang version 1.22 or others manually editing the file or running go mod edit -go=1.22
  3. Run go mod tidy
  4. Run go get github.com/Twingate/pulumi-twingate/sdk/v3

I was not able to reproduce the issue. Does the example at https://github.com/Twingate/pulumi-twingate/tree/main/examples/go work for you?

Maybe this line replace github.com/Twingate/pulumi-twingate/sdk/v3 v3.0.4 => ../../sdk inside go.mod file would replace the package "fetch" and use it as the module?

@twingate-blee twingate-blee self-assigned this Jul 11, 2024
@twingate-blee
Copy link
Member

I was able to reproduce the issue when I ran the example outside of the repo. Here is a PR with the updated example #109

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

Successfully merging a pull request may close this issue.

3 participants