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

go modules compatibility #156

Closed
gracenoah opened this issue Jun 10, 2019 · 2 comments · Fixed by #140
Closed

go modules compatibility #156

gracenoah opened this issue Jun 10, 2019 · 2 comments · Fixed by #140

Comments

@gracenoah
Copy link

For compatibility with go modules, the import path in the go.mod file in this repo must have a /v2 suffix. Otherwise users of this library will get:

go: gotest.tools/v2@v2.3.0: go.mod has non-.../v2 module path "gotest.tools" (and .../v2/go.mod does not exist) at revision v2.3.0

The workaround is for users to add the following to their go.mod file:

// The import path for this version doesn't work with go.mod because the go.mod file is missing the version suffix
replace gotest.tools => gotest.tools v2.3.0
@dnephin
Copy link
Member

dnephin commented Jun 20, 2019

Thanks for the report! I have had PR #140 sitting for a while, which should fix the issue. I should get around to merging that soon.

@mangatmodi
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants