Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

go get -u github.com/jinzhu/gorm not working #2398

Closed
chandanpasunoori opened this issue Apr 14, 2019 · 7 comments · Fixed by #2428
Closed

go get -u github.com/jinzhu/gorm not working #2398

chandanpasunoori opened this issue Apr 14, 2019 · 7 comments · Fixed by #2428

Comments

@chandanpasunoori
Copy link

chandanpasunoori commented Apr 14, 2019

What version of Go are you using (go version)?

go version go1.12.4 darwin/amd64

Log of go get -u github.com/jinzhu/gorm

go: finding github.com/jinzhu/inflection latest
go: finding github.com/denisenkom/go-mssqldb latest
go: finding github.com/jstemmer/go-junit-report latest
go: finding gopkg.in/check.v1 latest
go: finding golang.org/x/sync latest
go: finding golang.org/x/sys latest
go: finding golang.org/x/crypto latest
go: finding golang.org/x/exp latest
go: finding google.golang.org/api v0.0.0-20181030000543-1d582fd0359e
go: finding honnef.co/go/tools latest
go: finding golang.org/x/lint latest
go: finding golang.org/x/net latest
go: finding golang.org/x/build latest
go: finding go4.org latest
go: finding golang.org/x/tools latest
go: finding golang.org/x/time latest
go: finding github.com/bradfitz/go-smtpd latest
go: finding grpc.go4.org latest
go: finding github.com/golang/glog latest
go: finding golang.org/x/oauth2 latest
go: finding github.com/flynn/go-shlex latest
go: finding github.com/BurntSushi/xgb latest
go: finding github.com/coreos/go-systemd latest
go: finding github.com/anmitsu/go-shlex latest
go: finding golang.org/x/image latest
go: finding github.com/beorn7/perks latest
go: finding github.com/xdg/scram latest
go: finding github.com/prometheus/client_model latest
go: finding github.com/jellevandenhooff/dkim latest
go: finding github.com/prometheus/procfs latest
go: finding google.golang.org/genproto latest
go: finding github.com/eapache/go-xerial-snappy latest
go: finding google.golang.org/api v0.0.0-20181220000619-583d854617af
go: finding github.com/rcrowley/go-metrics latest
go: finding github.com/tarm/serial latest
go: finding golang.org/x/perf latest
go: finding golang.org/x/mobile latest
go: finding github.com/gregjones/httpcache latest
go: finding github.com/kr/logfmt latest
go: finding github.com/alecthomas/template latest
go: finding github.com/aclements/go-gg latest
go: finding github.com/gonum/blas latest
go: finding github.com/gonum/matrix latest
go: finding github.com/kr/pty v1.1.1
go: finding github.com/GoogleCloudPlatform/cloudsql-proxy latest
go: finding github.com/gonum/lapack latest
go: finding github.com/mwitkow/go-conntrack latest
go: finding gopkg.in/tomb.v1 latest
go: finding github.com/alecthomas/units latest
go: finding cloud.google.com/go v0.0.0-20170206221025-ce650573d812
go: finding github.com/gonum/internal latest
go: finding github.com/google/pprof latest
go: finding github.com/golang/lint latest
go: github.com/golang/lint@v0.0.0-20190409202823-959b441ac422: parsing go.mod: unexpected module path "golang.org/x/lint"
go: finding github.com/gonum/floats latest
go: finding github.com/aclements/go-moremath latest
go: cloud.google.com/go@v0.0.0-20170206221025-ce650573d812: git -c protocol.version=0 fetch --unshallow -f https://code.googlesource.com/gocloud refs/heads/*:refs/heads/* refs/tags/*:refs/tags/* in /Users/cp/go/pkg/mod/cache/vcs/b0e27935eb83c1d7843713bafab507e95768b550f0552cb42d9f41e5fd9c8375: exit status 128:
	fatal: bad object a5913b3f7deecba45e98ff33cefbac4fd204ddd7
	error: remote did not send all necessary objects
go: google.golang.org/api@v0.0.0-20181030000543-1d582fd0359e: git -c protocol.version=0 fetch --unshallow -f https://code.googlesource.com/google-api-go-client refs/heads/*:refs/heads/* refs/tags/*:refs/tags/* in /Users/cp/go/pkg/mod/cache/vcs/9e62a95b0409d58bc0130bae299bdffbc7b7e74f3abe1ecf897474cc474b8bc0: exit status 128:
	fatal: bad object 19e022d8cf43ce81f046bae8cc18c5397cc7732f
	error: remote did not send all necessary objects
go: google.golang.org/api@v0.0.0-20181220000619-583d854617af: unknown revision 583d854617af
go get: error loading module requirements
@kkosmrli
Copy link

Can confirm this issue. I just ran into the same error. Tried on Linux and OSX with go 1.11 and 1.12.

@theocodes
Copy link

theocodes commented Apr 15, 2019

same

go: finding github.com/golang/lint v0.0.0-20180702182130-06c8688daad7
go: finding google.golang.org/api v0.0.0-20181030000543-1d582fd0359e
go: finding google.golang.org/api v0.0.0-20181220000619-583d854617af
go: finding google.golang.org/api v0.0.0-20180910000450-7ca32eb868bf
go: finding golang.org/x/lint v0.0.0-20180702182130-06c8688daad7
go: google.golang.org/api@v0.0.0-20181030000543-1d582fd0359e: git -c protocol.version=0 fetch --unshallow -f https://code.googlesource.com/google-api-go-client refs/heads/*:refs/heads/* refs/tags/*:refs/tags/* in /home/theocodes/Code/go/pkg/mod/cache/vcs/9e62a95b0409d58bc0130bae299bdffbc7b7e74f3abe1ecf897474cc474b8bc0: exit status 128:
	fatal: bad object 19e022d8cf43ce81f046bae8cc18c5397cc7732f
	error: remote did not send all necessary objects
go: google.golang.org/api@v0.0.0-20181220000619-583d854617af: unknown revision 583d854617af
go: google.golang.org/api@v0.0.0-20180910000450-7ca32eb868bf: unknown revision 7ca32eb868bf
go: error loading module requirements

Seems related to google.golang.org/api?

@kkosmrli
Copy link

When using go get github.com/jinzhu/gorm@v1.9.2 the problem does not occur.

@mununki
Copy link

mununki commented Apr 17, 2019

I have the same issue here.

dahamr pushed a commit to dahamr/gorm that referenced this issue Apr 29, 2019
This change updates just github.com/denisenkom/go-mssqldb to latest
to resolve the mess caused by golang/lint adding mod support.

See golang/lint#436.
dahamr pushed a commit to dahamr/gorm that referenced this issue Apr 29, 2019
This change updates just github.com/denisenkom/go-mssqldb to latest
to resolve the mess caused by golang/lint adding mod support.

See golang/lint#436.
@dahamr
Copy link

dahamr commented Apr 30, 2019

We have the same issue. I'm wondering if there's a plan for updating this? I can submit a PR from my fork if you like. I simply updated go-mssqldb to latest and can't reproduce anymore.

@emirb
Copy link
Contributor

emirb commented Apr 30, 2019

Thanks, fixed in #2428 and tagged as v1.9.5.

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

Successfully merging a pull request may close this issue.

7 participants