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

2.0: go.mod invalid #186

Closed
andig opened this issue Aug 14, 2020 · 5 comments · Fixed by #187
Closed

2.0: go.mod invalid #186

andig opened this issue Aug 14, 2020 · 5 comments · Fixed by #187

Comments

@andig
Copy link
Contributor

andig commented Aug 14, 2020

After latest release go.mod seems invalid:

❯ go get github.com/influxdata/influxdb-client-go@v2.0.0
go get github.com/influxdata/influxdb-client-go@v2.0.0: github.com/influxdata/influxdb-client-go@v2.0.0: invalid version: module contains a go.mod file, so major version must be compatible: should be v0 or v1, not v2

I assume you'll need to add a /v2 to the go.mod path

@aknuds1
Copy link

aknuds1 commented Aug 14, 2020

I was just going to report the same thing.

@aknuds1
Copy link

aknuds1 commented Aug 14, 2020

We solved it by using a Git revision reference:

github.com/influxdata/influxdb-client-go v0.0.0-20200814135139-d68836272a45

@andig
Copy link
Contributor Author

andig commented Aug 14, 2020

Interesting that works. It shouldn't as the version path would still be wrong at import time as one should require it as /v2...

@aknuds1
Copy link

aknuds1 commented Aug 14, 2020

Interesting that works. It shouldn't as the version path would still be wrong at import time as one should require it as /v2...

Doesn't seem to matter if you use a Git revision.

@vlastahajek
Copy link
Contributor

Guys, I'm very sorry for this trouble. I haven't known that Go has such a complicated way for upgrading major versions. I'm preparing the fix..

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

Successfully merging a pull request may close this issue.

3 participants