I have a very slow unstable network.
First Observation Running Locally
go get -u github.com/jinzhu/gorm
But if I run the same command outside the module directory, it can be completed in a reasonable time without any stdout.
Second Observation Running Remotely
go get -u github.com/jinzhu/gormgo.mod
require (
cloud.google.com/go v0.39.0 // indirect
github.com/denisenkom/go-mssqldb v0.0.0-20190515213511-eb9f6a1743f3 // indirect
github.com/golang/mock v1.3.1 // indirect
github.com/google/btree v1.0.0 // indirect
github.com/google/pprof v0.0.0-20190515194954-54271f7e092f // indirect
github.com/jinzhu/gorm v1.9.8 // indirect
github.com/jinzhu/inflection v0.0.0-20190603042836-f5c5f50e6090 // indirect
github.com/kr/pty v1.1.4 // indirect
github.com/lib/pq v1.1.1 // indirect
go.opencensus.io v0.22.0 // indirect
golang.org/x/crypto v0.0.0-20190530122614-20be4c3c3ed5 // indirect
golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522 // indirect
golang.org/x/image v0.0.0-20190523035834-f03afa92d3ff // indirect
golang.org/x/lint v0.0.0-20190409202823-959b441ac422 // indirect
golang.org/x/mobile v0.0.0-20190509164839-32b2708ab171 // indirect
golang.org/x/mod v0.1.0 // indirect
golang.org/x/net v0.0.0-20190603091049-60506f45cf65 // indirect
golang.org/x/oauth2 v0.0.0-20190523182746-aaccbc9213b0 // indirect
golang.org/x/sys v0.0.0-20190602015325-4c4f7f33c9ed // indirect
golang.org/x/time v0.0.0-20190308202827-9d24e82272b4 // indirect
golang.org/x/tools v0.0.0-20190603152906-08e0b306e832 // indirect
google.golang.org/appengine v1.6.0 // indirect
google.golang.org/genproto v0.0.0-20190530194941-fb225487d101 // indirect
google.golang.org/grpc v1.21.0 // indirect
honnef.co/go/tools v0.0.0-20190602125119-5a4a2f4a438d // indirect
)
go mod tidygo.mod
require (
cloud.google.com/go v0.39.0 // indirect
github.com/denisenkom/go-mssqldb v0.0.0-20190515213511-eb9f6a1743f3 // indirect
github.com/google/go-cmp v0.3.0 // indirect
github.com/jinzhu/gorm v1.9.8
github.com/jinzhu/inflection v0.0.0-20190603042836-f5c5f50e6090 // indirect
github.com/lib/pq v1.1.1 // indirect
golang.org/x/crypto v0.0.0-20190530122614-20be4c3c3ed5 // indirect
google.golang.org/appengine v1.6.0 // indirect
)
require(...)go.modgo mod tidygo.mod
require github.com/jinzhu/gorm v1.9.8
go build
go get -u
My two questions:
go get -ugo get -u
go get -ugitgitcurlcurlwgetgo get -uerror: RPC failed; The remote end hung up unexpectedly; fatal: early EOF; fatal: index-pack failed;go get -u
Thanks a lot.
(Btw, if go get can use wget, it will work in my local environment. I never have any problems with wget and wget will finally complete the download after waiting for a long time. But unfortunately, wget is not a preferred tool by the current dev world)