-
Notifications
You must be signed in to change notification settings - Fork 45
Description
Describe the bug
Go module version v2.0.0-rc.6 for github.com/PaloAltoNetworks/pango cannot be used with Go modules due to an invalid go.mod module path.
Expected behavior
The v2.0.0-rc.6 tag should include a go.mod file that declares the module path as:
module github.com/PaloAltoNetworks/pango/v2
This would allow it to be correctly fetched and imported via:
go get github.com/PaloAltoNetworks/pango/[email protected]
And in code:
import "github.com/PaloAltoNetworks/pango/v2"
Current behavior
The go.mod file at tag v2.0.0-rc.6 declares:
module github.com/PaloAltoNetworks/pango
This is invalid for a v2+ semantic version, causing Go to reject the version:
invalid version: module contains a go.mod file, so module path must match major version ("github.com/PaloAltoNetworks/pango/v2")
Possible solution
Update the go.mod file to include the correct module path for v2:
module github.com/PaloAltoNetworks/pango/v2
Then re-tag the release as v2.0.0-rc.7 (or v2.0.0 if it's ready), so that Go can correctly resolve and use the v2 module.
Steps to reproduce
Create a new Go module project.
Try to install pango v2:
go get github.com/PaloAltoNetworks/pango/[email protected]
Observe the error:
invalid version: module contains a go.mod file, so module path must match major version ("github.com/PaloAltoNetworks/pango/v2")
Screenshots
N/A
Context
This prevents developers from testing or adopting the upcoming v2.0.0 release in a Go modules-compatible way. It breaks standard Go tooling (go get, go mod tidy, etc.) and delays integration for users evaluating the v2 update.
Your Environment
Version used: v2.0.0-rc.6
Environment name and version: go version go1.21.5 darwin/amd64
Operating System and version: macOS 13.x
Link to your project: N/A (testing module compatibility in standalone demo)