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

should be v0 or v1, not v3 #644

Open
masikrus opened this issue Oct 9, 2024 · 4 comments
Open

should be v0 or v1, not v3 #644

masikrus opened this issue Oct 9, 2024 · 4 comments

Comments

@masikrus
Copy link

masikrus commented Oct 9, 2024

i need create pulumi provider

when i gen v3.9.1 i got error

$ go mod tidy go: errors parsing go.mod: go.mod:8:2: require github.com/e-breuninger/terraform-provider-netbox: version "v3.9.1" invalid: should be v0 or v1, not v3

how fix that?

@FlxPeters
Copy link
Member

Can you provide a bit more context? Doesn't sound like a problem with the provider. More like a pulumi issue.

@Ikke
Copy link
Contributor

Ikke commented Oct 16, 2024

This is related to how go expect versions to work. Go expects modules that have a version of v2 or higher to have that explicitly declared in their module path (eg. github.com/e-breuninger/terraform-provider-netbox/v3 in this case`).

When you build a binary, this does not matter, but when you try to include a package into a another module, go will complain if it does not adhere to that scheme.

@masikrus
Copy link
Author

I don't know GO very well
and yes I need to include the 3rd version module in the code
can I somehow get around this error?

@masikrus
Copy link
Author

masikrus commented Oct 21, 2024

so how i can use this provider?

module github.com/hbjydev/pulumi-netbox/provider

go 1.21

replace github.com/hashicorp/terraform-plugin-sdk/v2 => github.com/pulumi/terraform-plugin-sdk/v2 v2.0.0-20220824175045-450992f2f5b9

require (
	github.com/sempervictus/terraform-provider-netbox v3.9.2
	github.com/pulumi/pulumi-terraform-bridge/v3 v3.28.1
	github.com/pulumi/pulumi/sdk/v3 v3.38.0
)

i try update this pulumi provider https://github.com/hbjydev/pulumi-netbox/

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