opentracing-tutorial icon indicating copy to clipboard operation
opentracing-tutorial copied to clipboard

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

Open ahuigo opened this issue 3 years ago • 1 comments

$  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 avatar Nov 04 '21 13:11 ahuigo

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

ahuigo avatar Nov 04 '21 14:11 ahuigo