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

Fix module import path #84

Merged
merged 1 commit into from
Dec 3, 2024
Merged

Fix module import path #84

merged 1 commit into from
Dec 3, 2024

Conversation

matthewhughes-uw
Copy link
Collaborator

I was trying to install this and running into errors:

$ go install github.com/uw-labs/[email protected]
go: github.com/uw-labs/[email protected]: github.com/uw-labs/[email protected]: invalid version: module contains a go.mod file, so module path must match major version ("github.com/uw-labs/strongbox/v2")
$ go install github.com/uw-labs/strongbox/[email protected]
go: github.com/uw-labs/strongbox/[email protected]: github.com/uw-labs/[email protected]: invalid version: module contains a go.mod file, so module path must match major version ("github.com/uw-labs/strongbox/v2")

Resolve these by adding the major version to the module path

I was trying to install this and running into errors:

    $ go install github.com/uw-labs/[email protected]
    go: github.com/uw-labs/[email protected]: github.com/uw-labs/[email protected]: invalid version: module contains a go.mod file, so module path must match major version ("github.com/uw-labs/strongbox/v2")
    $ go install github.com/uw-labs/strongbox/[email protected]
    go: github.com/uw-labs/strongbox/[email protected]: github.com/uw-labs/[email protected]: invalid version: module contains a go.mod file, so module path must match major version ("github.com/uw-labs/strongbox/v2")

Resolve these by adding the major version to the module path
@matthewhughes-uw
Copy link
Collaborator Author

matthewhughes-uw commented Dec 2, 2024

testing (git SHA is from commit on this PR):

$ go install github.com/uw-labs/strongbox@66c63e99510b49ba879582cf7975492f9b81dd9c
go: github.com/uw-labs/strongbox@66c63e99510b49ba879582cf7975492f9b81dd9c: github.com/uw-labs/[email protected]: invalid version: go.mod has post-v1 module path "github.com/uw-labs/strongbox/v2" at revision 66c63e99510b
$ go install -x github.com/uw-labs/strongbox/v2@66c63e99510b49ba879582cf7975492f9b81dd9c
$ echo $?
0

@george-angel george-angel merged commit c282e8b into master Dec 3, 2024
5 checks passed
@george-angel george-angel deleted the mhughes-fix-mod-path branch December 3, 2024 05:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants