Closed ukai closed 5 years ago
@anasanzari, thanks. I can reproduce the failure.
Gerrit/jgit is still broken:
go: google.golang.org/api@v0.0.0-20181030000543-1d582fd0359e: git -c protocol.version=0 fetch --unshallow -f origin refs/heads/*:refs/heads/* refs/tags/*:refs/tags/* in /go/pkg/mod/cache/vcs/9e62a95b0409d58bc0130bae299bdffbc7b7e74f3abe1ecf897474cc474b8bc0: exit status 128:
fatal: missing tree object 'dcbf3e3c23816703a8f5ebfe6583cc3fc2793526'
error: remote did not send all necessary objects
go: error loading module requirements
Reopening.
@draftcode, please investigate?
I can reproduce this, but I cannot reproduce this with JGit.
can someone give a quick fix for this?
The reproduction case above only failed in production-like environments, so it took longer to track down. The next fix forgoes potential data transfer optimizations in the name of correctness. Unshallow operations will be full clones. We will work on reintroducing the optimizations but that is a multi-week project that won't begin immediately.
The patch is in our release process, building and verifying. It should start rolling it out in a few hours.
Sorry to say we hit a snag in the release process. We are working through it and will have a release ready later this afternoon. But releasing on a Friday afternoon is...dicey. We will wait until Monday to update the servers.
Good news is that the fix bypasses all the finicky calculations that have caused this problem to recur, and we have verified it in a production-like environment.
This was fully deployed by yesterday afternoon, PDT.
Thanks @tparker and @draftcode for working on this. I'll close this issue now.
If anyone is still seeing this, please let us know.
@jayconrod Hi, I still see this issue:
go get -y github.com/jinzhu/gorm
I get error:
go: golang.org/x/net@v0.0.0-20190125091013-d26f9f9a57f3: git fetch -f https://go.googlesource.com/net refs/heads/*:refs/heads/* refs/tags/*:refs/tags/* in /Users/anjmao/go/pkg/mod/cache/vcs/4a22365141bc4eea5d5ac4a1395e653f2669485db75ef119e7bbec8e19b12a21: exit status 1:
error: Could not read 65e2d4e15006aab9813ff8769e768bbf4bb667a0
fatal: bad object 65e2d4e15006aab9813ff8769e768bbf4bb667a0
error: https://go.googlesource.com/net did not send all necessary objects
Does anyone have a full reproduction recipe? I'm unable to reproduce it.
@anjmao I couldn't reproduce this. Are you seeing this consistently? Does this happen with an empty module cache (i.e., export GOPATH=$(mktemp -d)
)? Anything unusual about your environment (git config, git version, proxy settings)?
If you can give us a sequence of git commands that reproduces this (i.e., from go get -x
), that would be very helpful.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
What did you expect to see?
go modules downloaded and binary is built.
What did you see instead?
I could fix it by
then
go install
works as expected.https://bugs.chromium.org/p/chromium/issues/detail?id=951546