Skip to content
This repository has been archived by the owner on Dec 8, 2022. It is now read-only.

github.com/golang/[email protected]/gps/constraint.go:103:21: cannot use sv (type *semver.Version) as type semver.Version in field value #81

Open
ahuigo opened this issue Nov 4, 2021 · 1 comment

Comments

@ahuigo
Copy link

ahuigo commented Nov 4, 2021

$  cd $GOPATH/src/github.com/yurishkuro/opentracing-tutorial/go
$ make install
......
/home/hzy/go/pkg/mod/github.com/golang/[email protected]/gps/constraint.go:103:21: cannot use sv (type *semver.Version) as type semver.Version in field value
/home/hzy/go/pkg/mod/github.com/golang/[email protected]/gps/constraint.go:122:16: invalid type assertion: c.(semver.Version) (non-interface type *semver.Constraints on left)
/home/hzy/go/pkg/mod/github.com/golang/[email protected]/gps/constraint.go:149:4: undefined: semver.Constraint
Makefile:3: recipe for target 'install' failed
make: *** [install] Error 2
@ahuigo
Copy link
Author

ahuigo commented Nov 4, 2021

Resolved.
I download dep binary from github.com/golang directly
curl -L https://github.com/golang/dep/releases/download/v0.5.0/dep-linux-amd64 -o $GOPATH/bin/dep

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

No branches or pull requests

1 participant