golang / dep

Go dependency management tool experiment (deprecated)

Home Page:https://golang.github.io/dep/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Issue in constraint.go

AbinayaSundarrajan-db opened this issue · comments

Error while using go get of dep
go get -u github.com/golang/dep &
go get -u github.com/golang/dep/cmd/dep

Log:
go: golang.org/x/sys upgrade => v0.0.0-20200515095857-1151b9dac4a9
go: github.com/boltdb/bolt upgrade => v1.3.1
go: github.com/golang/protobuf upgrade => v1.4.2
go: google.golang.org/protobuf upgrade => v1.23.0

github.com/golang/dep/gps

pkg\mod\github.com\golang\dep@v0.5.4\gps\constraint.go:103:21: cannot use sv (type *semver.Version) as type semver.Version in field value
pkg\mod\github.com\golang\dep@v0.5.4\gps\constraint.go:122:16: invalid type assertion: c.(semver.Version) (non-interface type *semver.Constraints on left)
pkg\mod\github.com\golang\dep@v0.5.4\gps\constraint.go:149:4: undefined: semver.Constraint

Alternatively, Curl also gives the below error:
$ curl https://raw.githubusercontent.com/golang/dep/master/install.sh|sh
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:01:24 --:--:-- 0curl: (7) Failed to connect to raw.githubusercontent.com port 443: Timed out

I have the same question,how to deal with it?

I have the same issues, resolved now?

me too, any clue?

how to deal

求解决方案 plz

I was able to get through this issue. My user name is pi, and my $GOPATH is /home/pi/go.

git clone https://github.com/golang/dep.git
cd dep
./install.sh

I got an error:
mv: cannot create regular file '/home/pi/go/bin/dep': Permission denied

To resolve, this issue:
sudo chown pi:pi /home/pi/go/bin/

Should be good now:
./install.sh
ARCH = arm
OS = linux
Will install into /home/pi/go/bin
Fetching https://github.com/golang/dep/releases/latest..
Release Tag = v0.5.4
Fetching https://github.com/golang/dep/releases/tag/v0.5.4..
Fetching https://github.com/golang/dep/releases/download/v0.5.4/dep-linux-arm..
Setting executable permissions.
Moving executable to /home/pi/go/bin/dep

Dep was officially deprecated earlier this year, and the proposal to archive this repository was accepted. As such, I'm closing outstanding issues before archiving the repository. For any further comments, please use the proposal thread on the Go issue tracker. Thanks!