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

Invalid Go module #790

Closed
pandatix opened this issue Jun 11, 2023 · 5 comments
Closed

Invalid Go module #790

pandatix opened this issue Jun 11, 2023 · 5 comments
Labels

Comments

@pandatix
Copy link
Contributor

Hello,

In go.mod the module name is github.com/Telmate/terraform-provider-proxmox, and latest tag is v2.9.14 (major = 2, minor = 9, patch = 14).
To refer to this repository we need to add in the require section of a go.mod the module name and its tag.

According to the Go versioning documentation :

A major version update to a number higher than v1 will also have a new module.

For this reason, we can't import the current repository as it would require the go.mod module name to be github.com/Telmate/terraform-provider-proxmox.

Reproduce the issue

  • Init a Go module (go mod init test)
  • Create a main.go file with the following content
package main

import (
	"github.com/Telmate/proxmox-api-go/proxmox"
)

func main() {
	proxmox.Test
}
  • Get the modules (go mod tidy)

You will observe it targets version v0.0.0-20230608103617-8f352f2fce3b (or any other with the same format) which is the default behavior of the Go dependency resolver when no candidate version is found, and especially in this case, because the Go module does not correspond to the latest tag.

@github-actions
Copy link

This issue is stale because it has been open for 60 days with no activity. Please update the provider to the latest version and, in the issue persist, provide full configuration and debug logs

@github-actions github-actions bot added the stale label Aug 11, 2023
@pandatix
Copy link
Contributor Author

Persist.

@github-actions github-actions bot removed the stale label Aug 12, 2023
@github-actions
Copy link

This issue is stale because it has been open for 60 days with no activity. Please update the provider to the latest version and, in the issue persist, provide full configuration and debug logs

@github-actions github-actions bot added the stale label Oct 11, 2023
@pandatix
Copy link
Contributor Author

Still a problem 🙃

@github-actions github-actions bot removed the stale label Oct 12, 2023
mleone87 pushed a commit that referenced this issue Dec 6, 2023
Copy link

This issue is stale because it has been open for 60 days with no activity. Please update the provider to the latest version and, in the issue persist, provide full configuration and debug logs

@github-actions github-actions bot added the stale label Dec 11, 2023
spettinichi pushed a commit to spettinichi/terraform-provider-proxmox that referenced this issue Jan 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant