-
Notifications
You must be signed in to change notification settings - Fork 156
Open
Description
Go module path mismatch in v4.1.2
Summary
The module at github.com/stackb/rules_proto is tagged as v4.1.2, but the go.mod file declares the module path as:
module github.com/stackb/rules_protoAccording to Go’s Semantic Import Versioning rules, any module at major version v2 or higher must include the major version suffix in its module path — for example:
module github.com/stackb/rules_proto/v4Because of this mismatch, attempting to import the module fails with the following error:
go: github.com/stackb/rules_proto@v4.1.2: invalid version: module contains a go.mod file, so module path must match major version ("github.com/stackb/rules_proto/v4")
Expected Fix
- Update the module path in
go.modto:module github.com/stackb/rules_proto/v4
- Commit the change and re-tag the release (e.g.,
v4.1.3). - Update internal imports as needed to include
/v4. - Optionally, retract the incorrect
v4.1.2tag to prevent future import errors.
References
Metadata
Metadata
Assignees
Labels
No labels