Skip to content
This repository has been archived by the owner on Sep 9, 2020. It is now read-only.

Issue in constraint.go #2244

Closed
AbinayaSundarrajan-db opened this issue May 17, 2020 · 7 comments
Closed

Issue in constraint.go #2244

AbinayaSundarrajan-db opened this issue May 17, 2020 · 7 comments

Comments

@AbinayaSundarrajan-db
Copy link

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

@anjingde
Copy link

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

@shuangyuxiaoyi
Copy link

I have the same issues, resolved now?

@lukluk
Copy link

lukluk commented Jul 6, 2020

me too, any clue?

@liuchuanhao
Copy link

how to deal

@liuchuanhao
Copy link

求解决方案 plz

@ghost
Copy link

ghost commented Jul 18, 2020

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

@mvdan
Copy link
Member

mvdan commented Sep 4, 2020

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!

@mvdan mvdan closed this as completed Sep 4, 2020
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

6 participants