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

Unable to 'go get' versions after v0.1.0 #25

Closed
eay opened this issue Jun 10, 2020 · 1 comment
Closed

Unable to 'go get' versions after v0.1.0 #25

eay opened this issue Jun 10, 2020 · 1 comment

Comments

@eay
Copy link

eay commented Jun 10, 2020

In might be my go mod skills are deficient, but
$ go list -m -versions github.com/florianl/go-conntrack
github.com/florianl/go-conntrack v0.1.0
$ git tag
v0.1.0
v2.0.0
v3.0.0

but I can't build with v3.0.0.
$ mkdir new
$ cd new
$ cp ~/git/go-conntrack/example_DumpCPUStats_test.go d.go
$ go mod init
$ go build d.go
go: finding module for package github.com/florianl/go-conntrack
go: found github.com/florianl/go-conntrack in github.com/florianl/go-conntrack v0.1.0

github.com/florianl/go-conntrack

../../pkg/mod/github.com/florianl/go-conntrack@v0.1.0/conntrack_nonlinux.go:55:9: undefined: extractAttributes

Edit d.go to ct "github.com/florianl/go-conntrack/v3"
$ go build d.go
go: finding module for package github.com/florianl/go-conntrack/v3
d.go:6:2: module github.com/florianl/go-conntrack@latest found (v0.1.0), but does not contain package github.com/florianl/go-conntrack/v3

Any ideas?

@florianl
Copy link
Owner

Thanks fore reporting and pushing the importance of this issue.
I'm aware of this conflict. The problem I'm facing is

  • break backwards compatibility and provide only v3 or
  • remove git tags at all

A temporary work around for you for the moment might look like:

$ go get github.com/florianl/go-conntrack@master

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

No branches or pull requests

2 participants