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

cmd/go: git remote did not send all necessary objects #59044

Closed
jpduckwo opened this issue Mar 15, 2023 · 25 comments
Closed

cmd/go: git remote did not send all necessary objects #59044

jpduckwo opened this issue Mar 15, 2023 · 25 comments
Labels
GoCommand cmd/go NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.
Milestone

Comments

@jpduckwo
Copy link

jpduckwo commented Mar 15, 2023

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

$ go version
go version go1.20.2 darwin/arm64

Does this issue reproduce with the latest release?

Yes - inconsistently

What operating system and processor architecture are you using (go env)?

go env Output
$ go env
GO111MODULE=""
GOARCH="arm64"
GOBIN=""
GOCACHE="/Users/x/Library/Caches/go-build"
GOENV="/Users/x/Library/Application Support/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="arm64"
GOHOSTOS="darwin"
GOINSECURE=""
GOMODCACHE="/Users/x/dev/go/pkg/mod"
GONOPROXY="git-codecommit.ap-southeast-2.amazonaws.com,x"
GONOSUMDB="git-codecommit.ap-southeast-2.amazonaws.com,x"
GOOS="darwin"
GOPATH="/Users/x/dev/go"
GOPRIVATE="git-codecommit.ap-southeast-2.amazonaws.com,x"
GOPROXY="https://proxy.golang.org/,direct"
GOROOT="/usr/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_arm64"
GOVCS=""
GOVERSION="go1.20.2"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/Users/x/dev/x/go.mod"
GOWORK=""
CGO_CFLAGS="-O2 -g"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-O2 -g"
CGO_FFLAGS="-O2 -g"
CGO_LDFLAGS="-O2 -g"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -arch arm64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/fx/gdzg_qkn6y79r0cjz5d87j140000gn/T/go-build35198489=/tmp/go-build -gno-record-gcc-switches -fno-common"

What did you do?

Seems very similar to old issue #31399
Getting inconsistent results when running go get command on a CodeCommit git repo. In the form of:
go get -x git-codecommit.ap-southeast-2.amazonaws.com/v1/repos/x.git@<branch>
The command fails inconsistently with

fatal: bad object <some commit>
error: https://git-codecommit.ap-southeast-2.amazonaws.com/v1/repos/x did not send all necessary objects

Using the local machine, switching the branch name sometimes got it to work. However, using our CICD pipeline the command seems to always fail no matter the branch.

It doesn't fail ever with go version 1.19 - so there doesn't appear to be a problem with the repository.

EDIT: also noting that the commit hash that it complains about is different on different branches that we try it on

What did you expect to see?

The command successfully completes which is the case when switching back to v1.19

What did you see instead?

did not send all necessary objects

@jpduckwo jpduckwo changed the title affected/package: cmd/go: git remote did not send all necessary objects cmd/go: git remote did not send all necessary objects Mar 15, 2023
@ianlancetaylor
Copy link
Contributor

Can you show us the output of the go get -x command? Thanks.

@jpduckwo
Copy link
Author

jpduckwo commented Mar 15, 2023

Logs from CICD failing on two different branches. Note repo name is updated for privacy. Also note the CICD is v1.20.1 (not .2)

Click to see logs
[Container] 2023/03/14 06:05:13 Running command go version
go version go1.20.1 linux/amd64

[Container] 2023/03/14 06:05:13 Running command go mod edit -dropreplace git-codecommit.ap-southeast-2.amazonaws.com/v1/repos/app.lib.git

[Container] 2023/03/14 06:05:13 Running command go mod download

[Container] 2023/03/14 06:05:38 Running command if [[ -z "${LIB_BRANCH}" ]]; then
  echo "LIB_BRANCH not set using version from go.mod"
else
  echo "LIB_BRANCH is set, getting HEAD from ${LIB_BRANCH} branch"
  go get -x git-codecommit.ap-southeast-2.amazonaws.com/v1/repos/app.lib.git@test
  go get -x git-codecommit.ap-southeast-2.amazonaws.com/v1/repos/app.lib.git@${LIB_BRANCH}
fi
LIB_BRANCH is set, getting HEAD from develop branch
# get https://git-codecommit.ap-southeast-2.amazonaws.com/?go-get=1
# get https://git-codecommit.ap-southeast-2.amazonaws.com/v1/repos?go-get=1
cd /go/pkg/mod
git ls-remote https://git-codecommit.ap-southeast-2.amazonaws.com/v1/repos/app.lib
# get https://git-codecommit.ap-southeast-2.amazonaws.com/?go-get=1: 401 Unauthorized (0.019s)
# get https://git-codecommit.ap-southeast-2.amazonaws.com/v1/repos?go-get=1: 401 Unauthorized (0.021s)
mkdir -p /go/pkg/mod/cache/vcs # git3 https://git-codecommit.ap-southeast-2.amazonaws.com/v1/repos/app.lib
# lock /go/pkg/mod/cache/vcs/86cbb66aa0091673f15a828b4042911b3c116cded9ab998b7ab8e0e42f6164a2.lock
# /go/pkg/mod/cache/vcs/86cbb66aa0091673f15a828b4042911b3c116cded9ab998b7ab8e0e42f6164a2 for git3 https://git-codecommit.ap-southeast-2.amazonaws.com/v1/repos/app.lib
cd /go/pkg/mod/cache/vcs/86cbb66aa0091673f15a828b4042911b3c116cded9ab998b7ab8e0e42f6164a2; git tag -l
0.001s # cd /go/pkg/mod/cache/vcs/86cbb66aa0091673f15a828b4042911b3c116cded9ab998b7ab8e0e42f6164a2; git tag -l
cd /go/pkg/mod/cache/vcs/86cbb66aa0091673f15a828b4042911b3c116cded9ab998b7ab8e0e42f6164a2; git ls-remote -q origin
1.186s # cd /go/pkg/mod/cache/vcs/86cbb66aa0091673f15a828b4042911b3c116cded9ab998b7ab8e0e42f6164a2; git ls-remote -q origin
cd /go/pkg/mod/cache/vcs/86cbb66aa0091673f15a828b4042911b3c116cded9ab998b7ab8e0e42f6164a2; git -c log.showsignature=false log --no-decorate -n1 '--format=format:%H %ct %D' e033be1771d29668149d8816309a7ef0079f3315 --
0.001s # cd /go/pkg/mod/cache/vcs/86cbb66aa0091673f15a828b4042911b3c116cded9ab998b7ab8e0e42f6164a2; git -c log.showsignature=false log --no-decorate -n1 '--format=format:%H %ct %D' e033be1771d29668149d8816309a7ef0079f3315 --
cd /go/pkg/mod/cache/vcs/86cbb66aa0091673f15a828b4042911b3c116cded9ab998b7ab8e0e42f6164a2; git fetch -f --depth=1 origin refs/heads/test:refs/heads/test
3.676s # cd /go/pkg/mod/cache/vcs/86cbb66aa0091673f15a828b4042911b3c116cded9ab998b7ab8e0e42f6164a2; git fetch -f --depth=1 origin refs/heads/test:refs/heads/test
cd /go/pkg/mod/cache/vcs/86cbb66aa0091673f15a828b4042911b3c116cded9ab998b7ab8e0e42f6164a2; git -c log.showsignature=false log --no-decorate -n1 '--format=format:%H %ct %D' refs/heads/test --
0.002s # cd /go/pkg/mod/cache/vcs/86cbb66aa0091673f15a828b4042911b3c116cded9ab998b7ab8e0e42f6164a2; git -c log.showsignature=false log --no-decorate -n1 '--format=format:%H %ct %D' refs/heads/test --
cd /go/pkg/mod/cache/vcs/86cbb66aa0091673f15a828b4042911b3c116cded9ab998b7ab8e0e42f6164a2; git -c log.showsignature=false log --no-decorate -n1 '--format=format:%H %ct %D' refs/tags/v1.40.8 --
0.001s # cd /go/pkg/mod/cache/vcs/86cbb66aa0091673f15a828b4042911b3c116cded9ab998b7ab8e0e42f6164a2; git -c log.showsignature=false log --no-decorate -n1 '--format=format:%H %ct %D' refs/tags/v1.40.8 --
cd /go/pkg/mod/cache/vcs/86cbb66aa0091673f15a828b4042911b3c116cded9ab998b7ab8e0e42f6164a2; git cat-file blob 6e3bf57c2081bac0acfbf4e0b0d12a1c4e83a4ad:go.mod
0.001s # cd /go/pkg/mod/cache/vcs/86cbb66aa0091673f15a828b4042911b3c116cded9ab998b7ab8e0e42f6164a2; git cat-file blob 6e3bf57c2081bac0acfbf4e0b0d12a1c4e83a4ad:go.mod
cd /go/pkg/mod/cache/vcs/86cbb66aa0091673f15a828b4042911b3c116cded9ab998b7ab8e0e42f6164a2; git cat-file blob 6e3bf57c2081bac0acfbf4e0b0d12a1c4e83a4ad:go.mod
0.001s # cd /go/pkg/mod/cache/vcs/86cbb66aa0091673f15a828b4042911b3c116cded9ab998b7ab8e0e42f6164a2; git cat-file blob 6e3bf57c2081bac0acfbf4e0b0d12a1c4e83a4ad:go.mod
cd /go/pkg/mod/cache/vcs/86cbb66aa0091673f15a828b4042911b3c116cded9ab998b7ab8e0e42f6164a2; git -c log.showsignature=false log --no-decorate -n1 '--format=format:%H %ct %D' e033be1771d29668149d8816309a7ef0079f3315 --
0.001s # cd /go/pkg/mod/cache/vcs/86cbb66aa0091673f15a828b4042911b3c116cded9ab998b7ab8e0e42f6164a2; git -c log.showsignature=false log --no-decorate -n1 '--format=format:%H %ct %D' e033be1771d29668149d8816309a7ef0079f3315 --
cd /go/pkg/mod/cache/vcs/86cbb66aa0091673f15a828b4042911b3c116cded9ab998b7ab8e0e42f6164a2; git for-each-ref --format %(refname) refs/tags --merged e033be1771d29668149d8816309a7ef0079f3315
0.001s # cd /go/pkg/mod/cache/vcs/86cbb66aa0091673f15a828b4042911b3c116cded9ab998b7ab8e0e42f6164a2; git for-each-ref --format %(refname) refs/tags --merged e033be1771d29668149d8816309a7ef0079f3315
cd /go/pkg/mod/cache/vcs/86cbb66aa0091673f15a828b4042911b3c116cded9ab998b7ab8e0e42f6164a2; git fetch -f origin 'refs/heads/*:refs/heads/*' 'refs/tags/*:refs/tags/*'
7.942s # cd /go/pkg/mod/cache/vcs/86cbb66aa0091673f15a828b4042911b3c116cded9ab998b7ab8e0e42f6164a2; git fetch -f origin 'refs/heads/*:refs/heads/*' 'refs/tags/*:refs/tags/*'
go: git-codecommit.ap-southeast-2.amazonaws.com/v1/repos/app.lib.git@test: git fetch -f origin refs/heads/*:refs/heads/* refs/tags/*:refs/tags/* in /go/pkg/mod/cache/vcs/86cbb66aa0091673f15a828b4042911b3c116cded9ab998b7ab8e0e42f6164a2: exit status 1:
    remote: 
remote: Counting objects: 0        
remote: Counting objects: 0        
remote: Counting objects: 431        
remote: Counting objects: 431        
remote: Counting objects: 431, done.        
    Receiving objects:   0% (1/431)
Receiving objects:   1% (5/431)
Receiving objects:   2% (9/431)
Receiving objects:   3% (13/431)
Receiving objects:   4% (18/431)
Receiving objects:   5% (22/431)
Receiving objects:   6% (26/431)
Receiving objects:   7% (31/431)
Receiving objects:   8% (35/431)
Receiving objects:   9% (39/431)
Receiving objects:  10% (44/431)
Receiving objects:  11% (48/431)
Receiving objects:  12% (52/431)
Receiving objects:  13% (57/431)
Receiving objects:  14% (61/431)
Receiving objects:  15% (65/431)
Receiving objects:  16% (69/431)
Receiving objects:  17% (74/431)
Receiving objects:  18% (78/431)
Receiving objects:  19% (82/431)
Receiving objects:  20% (87/431)
Receiving objects:  21% (91/431)
Receiving objects:  22% (95/431)
Receiving objects:  23% (100/431)
Receiving objects:  24% (104/431)
Receiving objects:  25% (108/431)
Receiving objects:  26% (113/431)
Receiving objects:  27% (117/431)
Receiving objects:  28% (121/431)
Receiving objects:  29% (125/431)
Receiving objects:  30% (130/431)
Receiving objects:  31% (134/431)
Receiving objects:  32% (138/431)
Receiving objects:  33% (143/431)
Receiving objects:  34% (147/431)
Receiving objects:  35% (151/431)
Receiving objects:  36% (156/431)
Receiving objects:  37% (160/431)
Receiving objects:  38% (164/431)
Receiving objects:  39% (169/431)
Receiving objects:  40% (173/431)
Receiving objects:  41% (177/431)
Receiving objects:  42% (182/431)
Receiving objects:  43% (186/431)
Receiving objects:  44% (190/431)
Receiving objects:  45% (194/431)
Receiving objects:  46% (199/431)
Receiving objects:  47% (203/431)
Receiving objects:  48% (207/431)
Receiving objects:  49% (212/431)
Receiving objects:  50% (216/431)
Receiving objects:  51% (220/431)
Receiving objects:  52% (225/431)
Receiving objects:  53% (229/431)
Receiving objects:  54% (233/431)
Receiving objects:  55% (238/431)
Receiving objects:  56% (242/431)
Receiving objects:  57% (246/431)
Receiving objects:  58% (250/431)
Receiving objects:  59% (255/431)
Receiving objects:  60% (259/431)
Receiving objects:  61% (263/431)
Receiving objects:  62% (268/431)
Receiving objects:  63% (272/431)
Receiving objects:  64% (276/431)
Receiving objects:  65% (281/431)
Receiving objects:  66% (285/431)
Receiving objects:  67% (289/431)
Receiving objects:  68% (294/431)
Receiving objects:  69% (298/431)
Receiving objects:  70% (302/431)
Receiving objects:  71% (307/431)
Receiving objects:  72% (311/431)
Receiving objects:  73% (315/431)
Receiving objects:  74% (319/431)
Receiving objects:  75% (324/431)
Receiving objects:  76% (328/431)
Receiving objects:  77% (332/431)
Receiving objects:  78% (337/431)
Receiving objects:  79% (341/431)
Receiving objects:  80% (345/431)
Receiving objects:  81% (350/431)
Receiving objects:  82% (354/431)
Receiving objects:  83% (358/431)
Receiving objects:  84% (363/431)
Receiving objects:  85% (367/431)
Receiving objects:  86% (371/431)
Receiving objects:  87% (375/431)
Receiving objects:  88% (380/431)
Receiving objects:  89% (384/431)
Receiving objects:  90% (388/431)
Receiving objects:  91% (393/431)
Receiving objects:  92% (397/431)
Receiving objects:  93% (401/431)
Receiving objects:  94% (406/431)
Receiving objects:  95% (410/431)
Receiving objects:  96% (414/431)
Receiving objects:  97% (419/431)
Receiving objects:  98% (423/431)
Receiving objects:  99% (427/431)
Receiving objects: 100% (431/431)
Receiving objects: 100% (431/431), 61.58 KiB | 3.42 MiB/s, done.
    Resolving deltas:   0% (0/19)
Resolving deltas:   5% (1/19)
Resolving deltas:  10% (2/19)
Resolving deltas:  15% (3/19)
Resolving deltas:  21% (4/19)
Resolving deltas:  26% (5/19)
Resolving deltas:  31% (6/19)
Resolving deltas:  36% (7/19)
Resolving deltas:  42% (8/19)
Resolving deltas:  47% (9/19)
Resolving deltas:  52% (10/19)
Resolving deltas:  57% (11/19)
Resolving deltas:  63% (12/19)
Resolving deltas:  68% (13/19)
Resolving deltas:  73% (14/19)
Resolving deltas:  78% (15/19)
Resolving deltas:  84% (16/19)
Resolving deltas:  89% (17/19)
Resolving deltas:  94% (18/19)
Resolving deltas: 100% (19/19)
Resolving deltas: 100% (19/19), completed with 9 local objects.
    fatal: bad object f0ebb4c0f54266993d23750fb76899b1fc29a9f7
    error: https://git-codecommit.ap-southeast-2.amazonaws.com/v1/repos/app.lib did not send all necessary objects
# get https://git-codecommit.ap-southeast-2.amazonaws.com/?go-get=1
# get https://git-codecommit.ap-southeast-2.amazonaws.com/v1/repos?go-get=1
cd /go/pkg/mod
git ls-remote https://git-codecommit.ap-southeast-2.amazonaws.com/v1/repos/app.lib
# get https://git-codecommit.ap-southeast-2.amazonaws.com/?go-get=1: 401 Unauthorized (0.020s)
# get https://git-codecommit.ap-southeast-2.amazonaws.com/v1/repos?go-get=1: 401 Unauthorized (0.020s)
mkdir -p /go/pkg/mod/cache/vcs # git3 https://git-codecommit.ap-southeast-2.amazonaws.com/v1/repos/app.lib
# lock /go/pkg/mod/cache/vcs/86cbb66aa0091673f15a828b4042911b3c116cded9ab998b7ab8e0e42f6164a2.lock
# /go/pkg/mod/cache/vcs/86cbb66aa0091673f15a828b4042911b3c116cded9ab998b7ab8e0e42f6164a2 for git3 https://git-codecommit.ap-southeast-2.amazonaws.com/v1/repos/app.lib
cd /go/pkg/mod/cache/vcs/86cbb66aa0091673f15a828b4042911b3c116cded9ab998b7ab8e0e42f6164a2; git tag -l
0.001s # cd /go/pkg/mod/cache/vcs/86cbb66aa0091673f15a828b4042911b3c116cded9ab998b7ab8e0e42f6164a2; git tag -l
cd /go/pkg/mod/cache/vcs/86cbb66aa0091673f15a828b4042911b3c116cded9ab998b7ab8e0e42f6164a2; git ls-remote -q origin
1.211s # cd /go/pkg/mod/cache/vcs/86cbb66aa0091673f15a828b4042911b3c116cded9ab998b7ab8e0e42f6164a2; git ls-remote -q origin
cd /go/pkg/mod/cache/vcs/86cbb66aa0091673f15a828b4042911b3c116cded9ab998b7ab8e0e42f6164a2; git -c log.showsignature=false log --no-decorate -n1 '--format=format:%H %ct %D' ce7d2348aba5ab2c9d39ee9ab12a1f20bed0e5aa --
0.002s # cd /go/pkg/mod/cache/vcs/86cbb66aa0091673f15a828b4042911b3c116cded9ab998b7ab8e0e42f6164a2; git -c log.showsignature=false log --no-decorate -n1 '--format=format:%H %ct %D' ce7d2348aba5ab2c9d39ee9ab12a1f20bed0e5aa --
cd /go/pkg/mod/cache/vcs/86cbb66aa0091673f15a828b4042911b3c116cded9ab998b7ab8e0e42f6164a2; git -c log.showsignature=false log --no-decorate -n1 '--format=format:%H %ct %D' refs/tags/v1.40.8 --
0.002s # cd /go/pkg/mod/cache/vcs/86cbb66aa0091673f15a828b4042911b3c116cded9ab998b7ab8e0e42f6164a2; git -c log.showsignature=false log --no-decorate -n1 '--format=format:%H %ct %D' refs/tags/v1.40.8 --
cd /go/pkg/mod/cache/vcs/86cbb66aa0091673f15a828b4042911b3c116cded9ab998b7ab8e0e42f6164a2; git cat-file blob 6e3bf57c2081bac0acfbf4e0b0d12a1c4e83a4ad:go.mod
0.001s # cd /go/pkg/mod/cache/vcs/86cbb66aa0091673f15a828b4042911b3c116cded9ab998b7ab8e0e42f6164a2; git cat-file blob 6e3bf57c2081bac0acfbf4e0b0d12a1c4e83a4ad:go.mod
cd /go/pkg/mod/cache/vcs/86cbb66aa0091673f15a828b4042911b3c116cded9ab998b7ab8e0e42f6164a2; git cat-file blob 6e3bf57c2081bac0acfbf4e0b0d12a1c4e83a4ad:go.mod
0.001s # cd /go/pkg/mod/cache/vcs/86cbb66aa0091673f15a828b4042911b3c116cded9ab998b7ab8e0e42f6164a2; git cat-file blob 6e3bf57c2081bac0acfbf4e0b0d12a1c4e83a4ad:go.mod
cd /go/pkg/mod/cache/vcs/86cbb66aa0091673f15a828b4042911b3c116cded9ab998b7ab8e0e42f6164a2; git -c log.showsignature=false log --no-decorate -n1 '--format=format:%H %ct %D' ce7d2348aba5ab2c9d39ee9ab12a1f20bed0e5aa --
0.001s # cd /go/pkg/mod/cache/vcs/86cbb66aa0091673f15a828b4042911b3c116cded9ab998b7ab8e0e42f6164a2; git -c log.showsignature=false log --no-decorate -n1 '--format=format:%H %ct %D' ce7d2348aba5ab2c9d39ee9ab12a1f20bed0e5aa --
cd /go/pkg/mod/cache/vcs/86cbb66aa0091673f15a828b4042911b3c116cded9ab998b7ab8e0e42f6164a2; git for-each-ref --format %(refname) refs/tags --merged ce7d2348aba5ab2c9d39ee9ab12a1f20bed0e5aa
0.001s # cd /go/pkg/mod/cache/vcs/86cbb66aa0091673f15a828b4042911b3c116cded9ab998b7ab8e0e42f6164a2; git for-each-ref --format %(refname) refs/tags --merged ce7d2348aba5ab2c9d39ee9ab12a1f20bed0e5aa
cd /go/pkg/mod/cache/vcs/86cbb66aa0091673f15a828b4042911b3c116cded9ab998b7ab8e0e42f6164a2; git fetch -f origin 'refs/heads/*:refs/heads/*' 'refs/tags/*:refs/tags/*'
5.009s # cd /go/pkg/mod/cache/vcs/86cbb66aa0091673f15a828b4042911b3c116cded9ab998b7ab8e0e42f6164a2; git fetch -f origin 'refs/heads/*:refs/heads/*' 'refs/tags/*:refs/tags/*'
go: git-codecommit.ap-southeast-2.amazonaws.com/v1/repos/app.lib.git@develop: git fetch -f origin refs/heads/*:refs/heads/* refs/tags/*:refs/tags/* in /go/pkg/mod/cache/vcs/86cbb66aa0091673f15a828b4042911b3c116cded9ab998b7ab8e0e42f6164a2: exit status 1:
    remote: 
remote: Counting objects: 431        
remote: Counting objects: 431        
remote: Counting objects: 431, done.        
    Receiving objects:   0% (1/431)
Receiving objects:   1% (5/431)
Receiving objects:   2% (9/431)
Receiving objects:   3% (13/431)
Receiving objects:   4% (18/431)
Receiving objects:   5% (22/431)
Receiving objects:   6% (26/431)
Receiving objects:   7% (31/431)
Receiving objects:   8% (35/431)
Receiving objects:   9% (39/431)
Receiving objects:  10% (44/431)
Receiving objects:  11% (48/431)
Receiving objects:  12% (52/431)
Receiving objects:  13% (57/431)
Receiving objects:  14% (61/431)
Receiving objects:  15% (65/431)
Receiving objects:  16% (69/431)
Receiving objects:  17% (74/431)
Receiving objects:  18% (78/431)
Receiving objects:  19% (82/431)
Receiving objects:  20% (87/431)
Receiving objects:  21% (91/431)
Receiving objects:  22% (95/431)
Receiving objects:  23% (100/431)
Receiving objects:  24% (104/431)
Receiving objects:  25% (108/431)
Receiving objects:  26% (113/431)
Receiving objects:  27% (117/431)
Receiving objects:  28% (121/431)
Receiving objects:  29% (125/431)
Receiving objects:  30% (130/431)
Receiving objects:  31% (134/431)
Receiving objects:  32% (138/431)
Receiving objects:  33% (143/431)
Receiving objects:  34% (147/431)
Receiving objects:  35% (151/431)
Receiving objects:  36% (156/431)
Receiving objects:  37% (160/431)
Receiving objects:  38% (164/431)
Receiving objects:  39% (169/431)
Receiving objects:  40% (173/431)
Receiving objects:  41% (177/431)
Receiving objects:  42% (182/431)
Receiving objects:  43% (186/431)
Receiving objects:  44% (190/431)
Receiving objects:  45% (194/431)
Receiving objects:  46% (199/431)
Receiving objects:  47% (203/431)
Receiving objects:  48% (207/431)
Receiving objects:  49% (212/431)
Receiving objects:  50% (216/431)
Receiving objects:  51% (220/431)
Receiving objects:  52% (225/431)
Receiving objects:  53% (229/431)
Receiving objects:  54% (233/431)
Receiving objects:  55% (238/431)
Receiving objects:  56% (242/431)
Receiving objects:  57% (246/431)
Receiving objects:  58% (250/431)
Receiving objects:  59% (255/431)
Receiving objects:  60% (259/431)
Receiving objects:  61% (263/431)
Receiving objects:  62% (268/431)
Receiving objects:  63% (272/431)
Receiving objects:  64% (276/431)
Receiving objects:  65% (281/431)
Receiving objects:  66% (285/431)
Receiving objects:  67% (289/431)
Receiving objects:  68% (294/431)
Receiving objects:  69% (298/431)
Receiving objects:  70% (302/431)
Receiving objects:  71% (307/431)
Receiving objects:  72% (311/431)
Receiving objects:  73% (315/431)
Receiving objects:  74% (319/431)
Receiving objects:  75% (324/431)
Receiving objects:  76% (328/431)
Receiving objects:  77% (332/431)
Receiving objects:  78% (337/431)
Receiving objects:  79% (341/431)
Receiving objects:  80% (345/431)
Receiving objects:  81% (350/431)
Receiving objects:  82% (354/431)
Receiving objects:  83% (358/431)
Receiving objects:  84% (363/431)
Receiving objects:  85% (367/431)
Receiving objects:  86% (371/431)
Receiving objects:  87% (375/431)
Receiving objects:  88% (380/431)
Receiving objects:  89% (384/431)
Receiving objects:  90% (388/431)
Receiving objects:  91% (393/431)
Receiving objects:  92% (397/431)
Receiving objects:  93% (401/431)
Receiving objects:  94% (406/431)
Receiving objects:  95% (410/431)
Receiving objects:  96% (414/431)
Receiving objects:  97% (419/431)
Receiving objects:  98% (423/431)
Receiving objects:  99% (427/431)
Receiving objects: 100% (431/431)
Receiving objects: 100% (431/431), 61.58 KiB | 2.93 MiB/s, done.
    Resolving deltas:   0% (0/19)
Resolving deltas:   5% (1/19)
Resolving deltas:  10% (2/19)
Resolving deltas:  15% (3/19)
Resolving deltas:  21% (4/19)
Resolving deltas:  26% (5/19)
Resolving deltas:  31% (6/19)
Resolving deltas:  36% (7/19)
Resolving deltas:  42% (8/19)
Resolving deltas:  47% (9/19)
Resolving deltas:  52% (10/19)
Resolving deltas:  57% (11/19)
Resolving deltas:  63% (12/19)
Resolving deltas:  68% (13/19)
Resolving deltas:  73% (14/19)
Resolving deltas:  78% (15/19)
Resolving deltas:  84% (16/19)
Resolving deltas:  89% (17/19)
Resolving deltas:  94% (18/19)
Resolving deltas: 100% (19/19)
Resolving deltas: 100% (19/19), completed with 9 local objects.
    fatal: bad object f0ebb4c0f54266993d23750fb76899b1fc29a9f7
    error: https://git-codecommit.ap-southeast-2.amazonaws.com/v1/repos/app.lib did not send all necessary objects

[Container] 2023/03/14 06:06:00 Command did not exit successfully if [[ -z "${LIB_BRANCH}" ]]; then
  echo "LIB_BRANCH not set using version from go.mod"
else
  echo "LIB_BRANCH is set, getting HEAD from ${LIB_BRANCH} branch"
  go get -x git-codecommit.ap-southeast-2.amazonaws.com/v1/repos/app.lib.git@test
  go get -x git-codecommit.ap-southeast-2.amazonaws.com/v1/repos/app.lib.git@${LIB_BRANCH}
fi exit status 1
[Container] 2023/03/14 06:06:00 Phase complete: BUILD State: FAILED
[Container] 2023/03/14 06:06:00 Phase context status code: COMMAND_EXECUTION_ERROR Message: Error while executing command: if [[ -z "${LIB_BRANCH}" ]]; then
  echo "LIB_BRANCH not set using version from go.mod"
else
  echo "LIB_BRANCH is set, getting HEAD from ${LIB_BRANCH} branch"
  go get -x git-codecommit.ap-southeast-2.amazonaws.com/v1/repos/app.lib.git@test
  go get -x git-codecommit.ap-southeast-2.amazonaws.com/v1/repos/app.lib.git@${LIB_BRANCH}
fi. Reason: exit status 1
[Container] 2023/03/14 06:06:00 Entering phase POST_BUILD
[Container] 2023/03/14 06:06:00 Phase complete: POST_BUILD State: SUCCEEDED
[Container] 2023/03/14 06:06:00 Phase context status code:  Message: 
[Container] 2023/03/14 06:06:00 Expanding base directory path: dist
[Container] 2023/03/14 06:06:00 Assembling file list
[Container] 2023/03/14 06:06:00 Expanding dist
[Container] 2023/03/14 06:06:00 Skipping invalid file path dist
[Container] 2023/03/14 06:06:00 Phase complete: UPLOAD_ARTIFACTS State: FAILED
[Container] 2023/03/14 06:06:00 Phase context status code: CLIENT_ERROR Message: no matching base directory path found for dist

@seankhliao
Copy link
Member

That's a git error, I don't think there's anything go can do about it

@seankhliao seankhliao added the WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. label Mar 15, 2023
@jpduckwo
Copy link
Author

@seankhliao maybe so, but why does it only happen with v1.20 then? Is the git command changed?

@seankhliao
Copy link
Member

the git commands go runs are in the log you posted, perhaps it was your git version that changed and not go?

@seankhliao seankhliao added WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. and removed WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. labels Mar 15, 2023
@jpduckwo
Copy link
Author

jpduckwo commented Mar 15, 2023

The CICD environment is unchanged apart from the goenv installed go version, here are the successful logs from v1.19

Click to see logs
[Container] 2023/03/14 06:11:39 Running command goenv local 1.19.5

[Container] 2023/03/14 06:11:39 Running command go version
go version go1.19.5 linux/amd64

[Container] 2023/03/14 06:11:39 Running command go mod edit -dropreplace git-codecommit.ap-southeast-2.amazonaws.com/v1/repos/app.lib.git

[Container] 2023/03/14 06:11:39 Running command go mod download

[Container] 2023/03/14 06:12:02 Running command if [[ -z "${IB_BRANCH}" ]]; then
  echo "IB_BRANCH not set using version from go.mod"
else
  echo "IB_BRANCH is set, getting HEAD from ${IB_BRANCH} branch"
  go get -x git-codecommit.ap-southeast-2.amazonaws.com/v1/repos/app.lib.git@${IB_BRANCH}
fi
IB_BRANCH is set, getting HEAD from develop branch
# get https://git-codecommit.ap-southeast-2.amazonaws.com/v1/repos?go-get=1
cd /go/pkg/mod
git ls-remote https://git-codecommit.ap-southeast-2.amazonaws.com/v1/repos/app.lib
# get https://git-codecommit.ap-southeast-2.amazonaws.com/?go-get=1
# get https://git-codecommit.ap-southeast-2.amazonaws.com/v1/repos?go-get=1: 401 Unauthorized (0.019s)
# get https://git-codecommit.ap-southeast-2.amazonaws.com/?go-get=1: 401 Unauthorized (0.020s)
mkdir -p /go/pkg/mod/cache/vcs # git3 https://git-codecommit.ap-southeast-2.amazonaws.com/v1/repos/app.lib
# lock /go/pkg/mod/cache/vcs/86cbb66aa0091673f15a828b4042911b3c116cded9ab998b7ab8e0e42f6164a2.lock
# /go/pkg/mod/cache/vcs/86cbb66aa0091673f15a828b4042911b3c116cded9ab998b7ab8e0e42f6164a2 for git3 https://git-codecommit.ap-southeast-2.amazonaws.com/v1/repos/app.lib
cd /go/pkg/mod/cache/vcs/86cbb66aa0091673f15a828b4042911b3c116cded9ab998b7ab8e0e42f6164a2; git tag -l
0.002s # cd /go/pkg/mod/cache/vcs/86cbb66aa0091673f15a828b4042911b3c116cded9ab998b7ab8e0e42f6164a2; git tag -l
cd /go/pkg/mod/cache/vcs/86cbb66aa0091673f15a828b4042911b3c116cded9ab998b7ab8e0e42f6164a2; git ls-remote -q origin
1.194s # cd /go/pkg/mod/cache/vcs/86cbb66aa0091673f15a828b4042911b3c116cded9ab998b7ab8e0e42f6164a2; git ls-remote -q origin
cd /go/pkg/mod/cache/vcs/86cbb66aa0091673f15a828b4042911b3c116cded9ab998b7ab8e0e42f6164a2; git -c log.showsignature=false log --no-decorate -n1 '--format=format:%H %ct %D' ce7d2348aba5ab2c9d39ee9ab12a1f20bed0e5aa --
0.001s # cd /go/pkg/mod/cache/vcs/86cbb66aa0091673f15a828b4042911b3c116cded9ab998b7ab8e0e42f6164a2; git -c log.showsignature=false log --no-decorate -n1 '--format=format:%H %ct %D' ce7d2348aba5ab2c9d39ee9ab12a1f20bed0e5aa --
cd /go/pkg/mod/cache/vcs/86cbb66aa0091673f15a828b4042911b3c116cded9ab998b7ab8e0e42f6164a2; git fetch -f --depth=1 origin refs/heads/develop:refs/heads/develop
2.985s # cd /go/pkg/mod/cache/vcs/86cbb66aa0091673f15a828b4042911b3c116cded9ab998b7ab8e0e42f6164a2; git fetch -f --depth=1 origin refs/heads/develop:refs/heads/develop
cd /go/pkg/mod/cache/vcs/86cbb66aa0091673f15a828b4042911b3c116cded9ab998b7ab8e0e42f6164a2; git -c log.showsignature=false log --no-decorate -n1 '--format=format:%H %ct %D' refs/heads/develop --
0.001s # cd /go/pkg/mod/cache/vcs/86cbb66aa0091673f15a828b4042911b3c116cded9ab998b7ab8e0e42f6164a2; git -c log.showsignature=false log --no-decorate -n1 '--format=format:%H %ct %D' refs/heads/develop --
cd /go/pkg/mod/cache/vcs/86cbb66aa0091673f15a828b4042911b3c116cded9ab998b7ab8e0e42f6164a2; git -c log.showsignature=false log --no-decorate -n1 '--format=format:%H %ct %D' refs/tags/v1.40.8 --
0.001s # cd /go/pkg/mod/cache/vcs/86cbb66aa0091673f15a828b4042911b3c116cded9ab998b7ab8e0e42f6164a2; git -c log.showsignature=false log --no-decorate -n1 '--format=format:%H %ct %D' refs/tags/v1.40.8 --
cd /go/pkg/mod/cache/vcs/86cbb66aa0091673f15a828b4042911b3c116cded9ab998b7ab8e0e42f6164a2; git cat-file blob 6e3bf57c2081bac0acfbf4e0b0d12a1c4e83a4ad:go.mod
0.001s # cd /go/pkg/mod/cache/vcs/86cbb66aa0091673f15a828b4042911b3c116cded9ab998b7ab8e0e42f6164a2; git cat-file blob 6e3bf57c2081bac0acfbf4e0b0d12a1c4e83a4ad:go.mod
cd /go/pkg/mod/cache/vcs/86cbb66aa0091673f15a828b4042911b3c116cded9ab998b7ab8e0e42f6164a2; git cat-file blob 6e3bf57c2081bac0acfbf4e0b0d12a1c4e83a4ad:go.mod
0.001s # cd /go/pkg/mod/cache/vcs/86cbb66aa0091673f15a828b4042911b3c116cded9ab998b7ab8e0e42f6164a2; git cat-file blob 6e3bf57c2081bac0acfbf4e0b0d12a1c4e83a4ad:go.mod
cd /go/pkg/mod/cache/vcs/86cbb66aa0091673f15a828b4042911b3c116cded9ab998b7ab8e0e42f6164a2; git -c log.showsignature=false log --no-decorate -n1 '--format=format:%H %ct %D' ce7d2348aba5ab2c9d39ee9ab12a1f20bed0e5aa --
0.001s # cd /go/pkg/mod/cache/vcs/86cbb66aa0091673f15a828b4042911b3c116cded9ab998b7ab8e0e42f6164a2; git -c log.showsignature=false log --no-decorate -n1 '--format=format:%H %ct %D' ce7d2348aba5ab2c9d39ee9ab12a1f20bed0e5aa --
cd /go/pkg/mod/cache/vcs/86cbb66aa0091673f15a828b4042911b3c116cded9ab998b7ab8e0e42f6164a2; git for-each-ref --format %(refname) refs/tags --merged ce7d2348aba5ab2c9d39ee9ab12a1f20bed0e5aa
0.001s # cd /go/pkg/mod/cache/vcs/86cbb66aa0091673f15a828b4042911b3c116cded9ab998b7ab8e0e42f6164a2; git for-each-ref --format %(refname) refs/tags --merged ce7d2348aba5ab2c9d39ee9ab12a1f20bed0e5aa
cd /go/pkg/mod/cache/vcs/86cbb66aa0091673f15a828b4042911b3c116cded9ab998b7ab8e0e42f6164a2; git fetch -f origin 'refs/heads/*:refs/heads/*' 'refs/tags/*:refs/tags/*'
8.775s # cd /go/pkg/mod/cache/vcs/86cbb66aa0091673f15a828b4042911b3c116cded9ab998b7ab8e0e42f6164a2; git fetch -f origin 'refs/heads/*:refs/heads/*' 'refs/tags/*:refs/tags/*'
cd /go/pkg/mod/cache/vcs/86cbb66aa0091673f15a828b4042911b3c116cded9ab998b7ab8e0e42f6164a2; git -c log.showsignature=false log --no-decorate -n1 '--format=format:%H %ct %D' ce7d2348aba5 --
0.002s # cd /go/pkg/mod/cache/vcs/86cbb66aa0091673f15a828b4042911b3c116cded9ab998b7ab8e0e42f6164a2; git -c log.showsignature=false log --no-decorate -n1 '--format=format:%H %ct %D' ce7d2348aba5 --
cd /go/pkg/mod/cache/vcs/86cbb66aa0091673f15a828b4042911b3c116cded9ab998b7ab8e0e42f6164a2; git cat-file blob ce7d2348aba5ab2c9d39ee9ab12a1f20bed0e5aa:go.mod
0.001s # cd /go/pkg/mod/cache/vcs/86cbb66aa0091673f15a828b4042911b3c116cded9ab998b7ab8e0e42f6164a2; git cat-file blob ce7d2348aba5ab2c9d39ee9ab12a1f20bed0e5aa:go.mod
cd /go/pkg/mod/cache/vcs/86cbb66aa0091673f15a828b4042911b3c116cded9ab998b7ab8e0e42f6164a2; git cat-file blob 6e3bf57c2081bac0acfbf4e0b0d12a1c4e83a4ad:go.mod
0.001s # cd /go/pkg/mod/cache/vcs/86cbb66aa0091673f15a828b4042911b3c116cded9ab998b7ab8e0e42f6164a2; git cat-file blob 6e3bf57c2081bac0acfbf4e0b0d12a1c4e83a4ad:go.mod
go: downloading git-codecommit.ap-southeast-2.amazonaws.com/v1/repos/app.lib.git v0.0.0-20230314054121-ce7d2348aba5
cd /go/pkg/mod/cache/vcs/86cbb66aa0091673f15a828b4042911b3c116cded9ab998b7ab8e0e42f6164a2; git cat-file blob ce7d2348aba5ab2c9d39ee9ab12a1f20bed0e5aa:go.mod
0.001s # cd /go/pkg/mod/cache/vcs/86cbb66aa0091673f15a828b4042911b3c116cded9ab998b7ab8e0e42f6164a2; git cat-file blob ce7d2348aba5ab2c9d39ee9ab12a1f20bed0e5aa:go.mod
cd /go/pkg/mod/cache/vcs/86cbb66aa0091673f15a828b4042911b3c116cded9ab998b7ab8e0e42f6164a2; git cat-file blob ce7d2348aba5ab2c9d39ee9ab12a1f20bed0e5aa:go.mod
0.001s # cd /go/pkg/mod/cache/vcs/86cbb66aa0091673f15a828b4042911b3c116cded9ab998b7ab8e0e42f6164a2; git cat-file blob ce7d2348aba5ab2c9d39ee9ab12a1f20bed0e5aa:go.mod
cd /go/pkg/mod/cache/vcs/86cbb66aa0091673f15a828b4042911b3c116cded9ab998b7ab8e0e42f6164a2; git -c core.autocrlf=input -c core.eol=lf archive --format=zip --prefix=prefix/ ce7d2348aba5ab2c9d39ee9ab12a1f20bed0e5aa
0.083s # cd /go/pkg/mod/cache/vcs/86cbb66aa0091673f15a828b4042911b3c116cded9ab998b7ab8e0e42f6164a2; git -c core.autocrlf=input -c core.eol=lf archive --format=zip --prefix=prefix/ ce7d2348aba5ab2c9d39ee9ab12a1f20bed0e5aa
cd /go/pkg/mod/cache/vcs/86cbb66aa0091673f15a828b4042911b3c116cded9ab998b7ab8e0e42f6164a2; git cat-file blob ce7d2348aba5ab2c9d39ee9ab12a1f20bed0e5aa:go.mod
0.002s # cd /go/pkg/mod/cache/vcs/86cbb66aa0091673f15a828b4042911b3c116cded9ab998b7ab8e0e42f6164a2; git cat-file blob ce7d2348aba5ab2c9d39ee9ab12a1f20bed0e5aa:go.mod
cd /go/pkg/mod/cache/vcs/86cbb66aa0091673f15a828b4042911b3c116cded9ab998b7ab8e0e42f6164a2; git cat-file blob ce7d2348aba5ab2c9d39ee9ab12a1f20bed0e5aa:go.mod
0.001s # cd /go/pkg/mod/cache/vcs/86cbb66aa0091673f15a828b4042911b3c116cded9ab998b7ab8e0e42f6164a2; git cat-file blob ce7d2348aba5ab2c9d39ee9ab12a1f20bed0e5aa:go.mod
# get https://proxy.golang.org/golang.org/x/net/@v/v0.0.0-20221002022538-bcab6841153b.mod
# get https://proxy.golang.org/golang.org/x/net/@v/v0.0.0-20221002022538-bcab6841153b.mod: 200 OK (0.103s)
... LOTS MORE OF THIS ...
# get https://sum.golang.org/tile/8/0/x063/780
# get https://sum.golang.org/tile/8/0/x063/780: 200 OK (0.002s)
go: warning: github.com/microcosm-cc/bluemonday@v1.0.21: retracted by module author: Retract older versions as only latest is to be depended upon
go: to switch to the latest unretracted version, run:
    go get github.com/microcosm-cc/bluemonday@latest
go: downgraded git-codecommit.ap-southeast-2.amazonaws.com/v1/repos/app.lib.git v1.40.8 => v0.0.0-20230314054121-ce7d2348aba5

[Container] 2023/03/14 06:12:29 Running command rm -rf "dist"

[Container] 2023/03/14 06:12:29 Running command cp -r "eb-template" "dist"

[Container] 2023/03/14 06:12:29 Running command env GOOS=linux GOARCH=amd64 GOFLAGS=-mod=mod go build -o "dist/bin/server"

[Container] 2023/03/14 06:12:47 Running command go mod edit -replace git-codecommit.ap-southeast-2.amazonaws.com/v1/repos/app.lib.git=../app.lib

[Container] 2023/03/14 06:12:48 Running command echo -n ${CODEBUILD_RESOLVED_SOURCE_VERSION} > dist/commithash

[Container] 2023/03/14 06:12:48 Phase complete: BUILD State: SUCCEEDED
[Container] 2023/03/14 06:12:48 Phase context status code:  Message: 
[Container] 2023/03/14 06:12:48 Entering phase POST_BUILD
[Container] 2023/03/14 06:12:48 Phase complete: POST_BUILD State: SUCCEEDED
[Container] 2023/03/14 06:12:48 Phase context status code:  Message: 
[Container] 2023/03/14 06:12:48 Expanding base directory path: dist
[Container] 2023/03/14 06:12:48 Assembling file list
[Container] 2023/03/14 06:12:48 Expanding dist
[Container] 2023/03/14 06:12:48 Expanding file paths for base directory dist
[Container] 2023/03/14 06:12:48 Assembling file list
[Container] 2023/03/14 06:12:48 Expanding **/*
[Container] 2023/03/14 06:12:48 Found 7 file(s)
[Container] 2023/03/14 06:12:49 Phase complete: UPLOAD_ARTIFACTS State: SUCCEEDED
[Container] 2023/03/14 06:12:49 Phase context status code:  Message: 

@jpduckwo
Copy link
Author

jpduckwo commented Mar 15, 2023

Here are the git commands filtered

# v1.19 working
git tag -l
git ls-remote -q origin
git -c log.showsignature=false log --no-decorate -n1 '--format=format:%H %ct %D' ce7d2348aba5ab2c9d39ee9ab12a1f20bed0e5aa --
git fetch -f --depth=1 origin refs/heads/develop:refs/heads/develop
git -c log.showsignature=false log --no-decorate -n1 '--format=format:%H %ct %D' refs/heads/develop --
git -c log.showsignature=false log --no-decorate -n1 '--format=format:%H %ct %D' refs/tags/v1.40.8 --
git cat-file blob 6e3bf57c2081bac0acfbf4e0b0d12a1c4e83a4ad:go.mod
git cat-file blob 6e3bf57c2081bac0acfbf4e0b0d12a1c4e83a4ad:go.mod
git -c log.showsignature=false log --no-decorate -n1 '--format=format:%H %ct %D' ce7d2348aba5ab2c9d39ee9ab12a1f20bed0e5aa --
git for-each-ref --format %(refname) refs/tags --merged ce7d2348aba5ab2c9d39ee9ab12a1f20bed0e5aa
git fetch -f origin 'refs/heads/*:refs/heads/*' 'refs/tags/*:refs/tags/*'
git -c log.showsignature=false log --no-decorate -n1 '--format=format:%H %ct %D' ce7d2348aba5 --
git cat-file blob ce7d2348aba5ab2c9d39ee9ab12a1f20bed0e5aa:go.mod
git cat-file blob 6e3bf57c2081bac0acfbf4e0b0d12a1c4e83a4ad:go.mod
git cat-file blob ce7d2348aba5ab2c9d39ee9ab12a1f20bed0e5aa:go.mod
git cat-file blob ce7d2348aba5ab2c9d39ee9ab12a1f20bed0e5aa:go.mod
git -c core.autocrlf=input -c core.eol=lf archive --format=zip --prefix=prefix/ ce7d2348aba5ab2c9d39ee9ab12a1f20bed0e5aa
git cat-file blob ce7d2348aba5ab2c9d39ee9ab12a1f20bed0e5aa:go.mod
git cat-file blob ce7d2348aba5ab2c9d39ee9ab12a1f20bed0e5aa:go.mod

# v1.20 failing
git tag -l
git ls-remote -q origin
git -c log.showsignature=false log --no-decorate -n1 '--format=format:%H %ct %D' ce7d2348aba5ab2c9d39ee9ab12a1f20bed0e5aa --
git -c log.showsignature=false log --no-decorate -n1 '--format=format:%H %ct %D' refs/tags/v1.40.8 --
git cat-file blob 6e3bf57c2081bac0acfbf4e0b0d12a1c4e83a4ad:go.mod
git cat-file blob 6e3bf57c2081bac0acfbf4e0b0d12a1c4e83a4ad:go.mod
git -c log.showsignature=false log --no-decorate -n1 '--format=format:%H %ct %D' ce7d2348aba5ab2c9d39ee9ab12a1f20bed0e5aa --
git for-each-ref --format %(refname) refs/tags --merged ce7d2348aba5ab2c9d39ee9ab12a1f20bed0e5aa
git fetch -f origin 'refs/heads/*:refs/heads/*' 'refs/tags/*:refs/tags/*'
go: git-codecommit.ap-southeast-2.amazonaws.com/v1/repos/app.lib.git@develop: git fetch -f origin refs/heads/*:refs/heads/* refs/tags/*:refs/tags/* in /go/pkg/mod/cache/vcs/86cbb66aa0091673f15a828b4042911b3c116cded9ab998b7ab8e0e42f6164a2: exit status 1:

EDIT:
So looks like v1.20 isn't doing this first git fetch -f --depth=1 origin refs/heads/develop:refs/heads/develop

@jpduckwo
Copy link
Author

I believe this may be related to local corruption of the caches somehow and will reopen if not

@jpduckwo jpduckwo reopened this Mar 15, 2023
@jpduckwo
Copy link
Author

jpduckwo commented Mar 15, 2023

After more investigation, I have ruled out any existing broken cache causing the problem. I have run go clean -modcache before all the tests I've run and can consistently get it to fail on my machine with v1.20.2. If I run the go get command with the @develop branch (fails) and then with the @test branch (works) the @develop command will then work correctly until I clean the module cache again. On the CICD pipeline - same result

It's like the git folder it is setting up the first time it is run is missing some information with v1.20

Here is a diff. Note the missing objects/pack files and shallow file in the broken one...

Click to view folder diff of working vs not working 👈
86cbb66aa0091673f15a828b4042911b3c116cded9ab998b7ab8e0e42f6164a2 (main) diff -r . ~/tmp/86cbb66aa0091673f15a828b4042911b3c116cded9ab998b7ab8e0e42f6164a2
diff --color -r ./FETCH_HEAD /Users/x/tmp/86cbb66aa0091673f15a828b4042911b3c116cded9ab998b7ab8e0e42f6164a2/FETCH_HEAD
1,3d0
< 09f49282a66b3173c264a7684600e05e388f21d5	not-for-merge	branch 'develop' of https://git-codecommit.ap-southeast-2.amazonaws.com/v1/repos/app.lib
< 6e3bf57c2081bac0acfbf4e0b0d12a1c4e83a4ad	not-for-merge	branch 'master' of https://git-codecommit.ap-southeast-2.amazonaws.com/v1/repos/app.lib
< ce7d2348aba5ab2c9d39ee9ab12a1f20bed0e5aa	not-for-merge	branch 'test' of https://git-codecommit.ap-southeast-2.amazonaws.com/v1/repos/app.lib
Only in ./objects/pack: pack-cfa081e602d784f5c8b8dc9b22c37c69a26c091f.idx
Only in ./objects/pack: pack-cfa081e602d784f5c8b8dc9b22c37c69a26c091f.pack
Only in ./objects/pack: pack-e1dcb7f37df6d3fda5fb22952f83c268c13e332f.idx
Only in ./objects/pack: pack-e1dcb7f37df6d3fda5fb22952f83c268c13e332f.pack
Only in ./refs/heads: master
Only in ./refs/heads: test
Only in ./refs/remotes/origin: master
Only in ./refs/remotes/origin: test
Only in ./refs/tags: v1.0.0
Only in ./refs/tags: v1.0.1
Only in ./refs/tags: v1.0.10
Only in ./refs/tags: v1.0.11
Only in ./refs/tags: v1.0.12
Only in ./refs/tags: v1.0.13
Only in ./refs/tags: v1.0.14
Only in ./refs/tags: v1.0.15
Only in ./refs/tags: v1.0.16
Only in ./refs/tags: v1.0.17
Only in ./refs/tags: v1.0.18
Only in ./refs/tags: v1.0.19
Only in ./refs/tags: v1.0.2
Only in ./refs/tags: v1.0.20
Only in ./refs/tags: v1.0.21
Only in ./refs/tags: v1.0.22
Only in ./refs/tags: v1.0.23
Only in ./refs/tags: v1.0.24
Only in ./refs/tags: v1.0.25
Only in ./refs/tags: v1.0.26
Only in ./refs/tags: v1.0.27
Only in ./refs/tags: v1.0.28
Only in ./refs/tags: v1.0.29
Only in ./refs/tags: v1.0.3
Only in ./refs/tags: v1.0.30
Only in ./refs/tags: v1.0.31
Only in ./refs/tags: v1.0.32
Only in ./refs/tags: v1.0.33
Only in ./refs/tags: v1.0.34
Only in ./refs/tags: v1.0.4
Only in ./refs/tags: v1.0.5
Only in ./refs/tags: v1.0.6
Only in ./refs/tags: v1.0.7
Only in ./refs/tags: v1.0.8
Only in ./refs/tags: v1.0.9
Only in ./refs/tags: v1.1.0
Only in ./refs/tags: v1.1.1
Only in ./refs/tags: v1.10.0
Only in ./refs/tags: v1.10.1
Only in ./refs/tags: v1.10.10
Only in ./refs/tags: v1.10.11
Only in ./refs/tags: v1.10.2
Only in ./refs/tags: v1.10.3
Only in ./refs/tags: v1.10.4
Only in ./refs/tags: v1.10.5
Only in ./refs/tags: v1.10.6
Only in ./refs/tags: v1.10.7
Only in ./refs/tags: v1.10.8
Only in ./refs/tags: v1.10.9
Only in ./refs/tags: v1.11.0
Only in ./refs/tags: v1.11.1
Only in ./refs/tags: v1.11.10
Only in ./refs/tags: v1.11.11
Only in ./refs/tags: v1.11.12
Only in ./refs/tags: v1.11.13
Only in ./refs/tags: v1.11.14
Only in ./refs/tags: v1.11.15
Only in ./refs/tags: v1.11.16
Only in ./refs/tags: v1.11.17
Only in ./refs/tags: v1.11.18
Only in ./refs/tags: v1.11.19
Only in ./refs/tags: v1.11.2
Only in ./refs/tags: v1.11.3
Only in ./refs/tags: v1.11.4
Only in ./refs/tags: v1.11.5
Only in ./refs/tags: v1.11.6
Only in ./refs/tags: v1.11.7
Only in ./refs/tags: v1.11.8
Only in ./refs/tags: v1.11.9
Only in ./refs/tags: v1.12.0
Only in ./refs/tags: v1.12.1
Only in ./refs/tags: v1.12.10
Only in ./refs/tags: v1.12.11
Only in ./refs/tags: v1.12.12
Only in ./refs/tags: v1.12.13
Only in ./refs/tags: v1.12.14
Only in ./refs/tags: v1.12.15
Only in ./refs/tags: v1.12.16
Only in ./refs/tags: v1.12.17
Only in ./refs/tags: v1.12.2
Only in ./refs/tags: v1.12.3
Only in ./refs/tags: v1.12.4
Only in ./refs/tags: v1.12.5
Only in ./refs/tags: v1.12.6
Only in ./refs/tags: v1.12.7
Only in ./refs/tags: v1.12.8
Only in ./refs/tags: v1.12.9
Only in ./refs/tags: v1.13.0
Only in ./refs/tags: v1.13.1
Only in ./refs/tags: v1.13.10
Only in ./refs/tags: v1.13.11
Only in ./refs/tags: v1.13.2
Only in ./refs/tags: v1.13.3
Only in ./refs/tags: v1.13.4
Only in ./refs/tags: v1.13.5
Only in ./refs/tags: v1.13.6
Only in ./refs/tags: v1.13.7
Only in ./refs/tags: v1.13.8
Only in ./refs/tags: v1.13.9
Only in ./refs/tags: v1.14.0
Only in ./refs/tags: v1.14.1
Only in ./refs/tags: v1.14.10
Only in ./refs/tags: v1.14.11
Only in ./refs/tags: v1.14.12
Only in ./refs/tags: v1.14.2
Only in ./refs/tags: v1.14.3
Only in ./refs/tags: v1.14.4
Only in ./refs/tags: v1.14.5
Only in ./refs/tags: v1.14.6
Only in ./refs/tags: v1.14.7
Only in ./refs/tags: v1.14.8
Only in ./refs/tags: v1.14.9
Only in ./refs/tags: v1.15.0
Only in ./refs/tags: v1.15.1
Only in ./refs/tags: v1.15.2
Only in ./refs/tags: v1.15.3
Only in ./refs/tags: v1.15.4
Only in ./refs/tags: v1.15.5
Only in ./refs/tags: v1.15.6
Only in ./refs/tags: v1.15.7
Only in ./refs/tags: v1.15.8
Only in ./refs/tags: v1.15.9
Only in ./refs/tags: v1.16.0
Only in ./refs/tags: v1.16.1
Only in ./refs/tags: v1.16.10
Only in ./refs/tags: v1.16.11
Only in ./refs/tags: v1.16.12
Only in ./refs/tags: v1.16.13
Only in ./refs/tags: v1.16.14
Only in ./refs/tags: v1.16.15
Only in ./refs/tags: v1.16.2
Only in ./refs/tags: v1.16.3
Only in ./refs/tags: v1.16.4
Only in ./refs/tags: v1.16.5
Only in ./refs/tags: v1.16.6
Only in ./refs/tags: v1.16.7
Only in ./refs/tags: v1.16.8
Only in ./refs/tags: v1.16.9
Only in ./refs/tags: v1.17.0
Only in ./refs/tags: v1.17.1
Only in ./refs/tags: v1.17.2
Only in ./refs/tags: v1.17.3
Only in ./refs/tags: v1.17.5
Only in ./refs/tags: v1.17.6
Only in ./refs/tags: v1.17.7
Only in ./refs/tags: v1.17.8
Only in ./refs/tags: v1.17.9
Only in ./refs/tags: v1.18.0
Only in ./refs/tags: v1.18.1
Only in ./refs/tags: v1.18.2
Only in ./refs/tags: v1.18.3
Only in ./refs/tags: v1.18.4
Only in ./refs/tags: v1.18.5
Only in ./refs/tags: v1.18.6
Only in ./refs/tags: v1.18.7
Only in ./refs/tags: v1.19.0
Only in ./refs/tags: v1.19.1
Only in ./refs/tags: v1.19.10
Only in ./refs/tags: v1.19.11
Only in ./refs/tags: v1.19.12
Only in ./refs/tags: v1.19.13
Only in ./refs/tags: v1.19.14
Only in ./refs/tags: v1.19.15
Only in ./refs/tags: v1.19.16
Only in ./refs/tags: v1.19.17
Only in ./refs/tags: v1.19.18
Only in ./refs/tags: v1.19.19
Only in ./refs/tags: v1.19.2
Only in ./refs/tags: v1.19.20
Only in ./refs/tags: v1.19.3
Only in ./refs/tags: v1.19.4
Only in ./refs/tags: v1.19.5
Only in ./refs/tags: v1.19.6
Only in ./refs/tags: v1.19.7
Only in ./refs/tags: v1.19.8
Only in ./refs/tags: v1.19.9
Only in ./refs/tags: v1.2.0
Only in ./refs/tags: v1.2.1
Only in ./refs/tags: v1.2.2
Only in ./refs/tags: v1.2.3
Only in ./refs/tags: v1.2.4
Only in ./refs/tags: v1.2.5
Only in ./refs/tags: v1.2.6
Only in ./refs/tags: v1.2.7
Only in ./refs/tags: v1.2.8
Only in ./refs/tags: v1.2.9
Only in ./refs/tags: v1.20.0
Only in ./refs/tags: v1.20.1
Only in ./refs/tags: v1.20.10
Only in ./refs/tags: v1.20.2
Only in ./refs/tags: v1.20.3
Only in ./refs/tags: v1.20.4
Only in ./refs/tags: v1.20.5
Only in ./refs/tags: v1.20.6
Only in ./refs/tags: v1.20.7
Only in ./refs/tags: v1.20.8
Only in ./refs/tags: v1.20.9
Only in ./refs/tags: v1.21.0
Only in ./refs/tags: v1.21.1
Only in ./refs/tags: v1.21.2
Only in ./refs/tags: v1.21.3
Only in ./refs/tags: v1.21.4
Only in ./refs/tags: v1.21.5
Only in ./refs/tags: v1.21.6
Only in ./refs/tags: v1.21.7
Only in ./refs/tags: v1.21.8
Only in ./refs/tags: v1.21.9
Only in ./refs/tags: v1.22.0
Only in ./refs/tags: v1.22.1
Only in ./refs/tags: v1.22.2
Only in ./refs/tags: v1.22.3
Only in ./refs/tags: v1.22.4
Only in ./refs/tags: v1.22.5
Only in ./refs/tags: v1.22.6
Only in ./refs/tags: v1.22.7
Only in ./refs/tags: v1.22.8
Only in ./refs/tags: v1.22.9
Only in ./refs/tags: v1.23.0
Only in ./refs/tags: v1.23.1
Only in ./refs/tags: v1.23.2
Only in ./refs/tags: v1.23.3
Only in ./refs/tags: v1.23.4
Only in ./refs/tags: v1.23.5
Only in ./refs/tags: v1.23.6
Only in ./refs/tags: v1.23.7
Only in ./refs/tags: v1.23.8
Only in ./refs/tags: v1.23.9
Only in ./refs/tags: v1.24.0
Only in ./refs/tags: v1.24.1
Only in ./refs/tags: v1.24.10
Only in ./refs/tags: v1.24.2
Only in ./refs/tags: v1.24.3
Only in ./refs/tags: v1.24.4
Only in ./refs/tags: v1.24.5
Only in ./refs/tags: v1.24.6
Only in ./refs/tags: v1.24.7
Only in ./refs/tags: v1.24.8
Only in ./refs/tags: v1.24.9
Only in ./refs/tags: v1.25.1
Only in ./refs/tags: v1.25.2
Only in ./refs/tags: v1.25.3
Only in ./refs/tags: v1.25.4
Only in ./refs/tags: v1.25.5
Only in ./refs/tags: v1.25.6
Only in ./refs/tags: v1.25.7
Only in ./refs/tags: v1.25.8
Only in ./refs/tags: v1.25.9
Only in ./refs/tags: v1.26.0
Only in ./refs/tags: v1.26.1
Only in ./refs/tags: v1.26.2
Only in ./refs/tags: v1.26.3
Only in ./refs/tags: v1.26.4
Only in ./refs/tags: v1.26.5
Only in ./refs/tags: v1.26.6
Only in ./refs/tags: v1.26.7
Only in ./refs/tags: v1.26.8
Only in ./refs/tags: v1.26.9
Only in ./refs/tags: v1.27.0
Only in ./refs/tags: v1.27.1
Only in ./refs/tags: v1.27.2
Only in ./refs/tags: v1.27.3
Only in ./refs/tags: v1.27.4
Only in ./refs/tags: v1.27.5
Only in ./refs/tags: v1.27.6
Only in ./refs/tags: v1.27.7
Only in ./refs/tags: v1.27.8
Only in ./refs/tags: v1.27.9
Only in ./refs/tags: v1.28.0
Only in ./refs/tags: v1.28.1
Only in ./refs/tags: v1.28.2
Only in ./refs/tags: v1.28.3
Only in ./refs/tags: v1.28.4
Only in ./refs/tags: v1.28.5
Only in ./refs/tags: v1.28.6
Only in ./refs/tags: v1.28.7
Only in ./refs/tags: v1.28.8
Only in ./refs/tags: v1.28.9
Only in ./refs/tags: v1.29.0
Only in ./refs/tags: v1.29.1
Only in ./refs/tags: v1.29.2
Only in ./refs/tags: v1.29.3
Only in ./refs/tags: v1.29.4
Only in ./refs/tags: v1.29.5
Only in ./refs/tags: v1.29.6
Only in ./refs/tags: v1.29.7
Only in ./refs/tags: v1.29.8
Only in ./refs/tags: v1.29.9
Only in ./refs/tags: v1.3.0
Only in ./refs/tags: v1.3.1
Only in ./refs/tags: v1.3.2
Only in ./refs/tags: v1.3.3
Only in ./refs/tags: v1.3.4
Only in ./refs/tags: v1.3.5
Only in ./refs/tags: v1.3.6
Only in ./refs/tags: v1.3.7
Only in ./refs/tags: v1.3.8
Only in ./refs/tags: v1.3.9
Only in ./refs/tags: v1.30.0
Only in ./refs/tags: v1.30.1
Only in ./refs/tags: v1.30.2
Only in ./refs/tags: v1.30.3
Only in ./refs/tags: v1.30.4
Only in ./refs/tags: v1.30.5
Only in ./refs/tags: v1.30.6
Only in ./refs/tags: v1.30.7
Only in ./refs/tags: v1.30.8
Only in ./refs/tags: v1.30.9
Only in ./refs/tags: v1.4.0
Only in ./refs/tags: v1.4.1
Only in ./refs/tags: v1.4.10
Only in ./refs/tags: v1.4.2
Only in ./refs/tags: v1.4.3
Only in ./refs/tags: v1.4.4
Only in ./refs/tags: v1.4.5
Only in ./refs/tags: v1.4.6
Only in ./refs/tags: v1.4.7
Only in ./refs/tags: v1.4.8
Only in ./refs/tags: v1.4.9
Only in ./refs/tags: v1.40.0
Only in ./refs/tags: v1.40.1
Only in ./refs/tags: v1.40.2
Only in ./refs/tags: v1.40.3
Only in ./refs/tags: v1.40.4
Only in ./refs/tags: v1.40.5
Only in ./refs/tags: v1.40.6
Only in ./refs/tags: v1.40.7
Only in ./refs/tags: v1.5.0
Only in ./refs/tags: v1.5.1
Only in ./refs/tags: v1.5.2
Only in ./refs/tags: v1.5.3
Only in ./refs/tags: v1.5.4
Only in ./refs/tags: v1.5.5
Only in ./refs/tags: v1.5.6
Only in ./refs/tags: v1.5.7
Only in ./refs/tags: v1.5.8
Only in ./refs/tags: v1.5.9
Only in ./refs/tags: v1.6.0
Only in ./refs/tags: v1.6.1
Only in ./refs/tags: v1.6.10
Only in ./refs/tags: v1.6.11
Only in ./refs/tags: v1.6.12
Only in ./refs/tags: v1.6.13
Only in ./refs/tags: v1.6.14
Only in ./refs/tags: v1.6.15
Only in ./refs/tags: v1.6.16
Only in ./refs/tags: v1.6.17
Only in ./refs/tags: v1.6.18
Only in ./refs/tags: v1.6.19
Only in ./refs/tags: v1.6.2
Only in ./refs/tags: v1.6.3
Only in ./refs/tags: v1.6.4
Only in ./refs/tags: v1.6.5
Only in ./refs/tags: v1.6.6
Only in ./refs/tags: v1.6.7
Only in ./refs/tags: v1.6.8
Only in ./refs/tags: v1.6.9
Only in ./refs/tags: v1.7.0
Only in ./refs/tags: v1.7.1
Only in ./refs/tags: v1.7.10
Only in ./refs/tags: v1.7.11
Only in ./refs/tags: v1.7.12
Only in ./refs/tags: v1.7.13
Only in ./refs/tags: v1.7.14
Only in ./refs/tags: v1.7.15
Only in ./refs/tags: v1.7.16
Only in ./refs/tags: v1.7.17
Only in ./refs/tags: v1.7.18
Only in ./refs/tags: v1.7.19
Only in ./refs/tags: v1.7.2
Only in ./refs/tags: v1.7.3
Only in ./refs/tags: v1.7.4
Only in ./refs/tags: v1.7.5
Only in ./refs/tags: v1.7.6
Only in ./refs/tags: v1.7.7
Only in ./refs/tags: v1.7.8
Only in ./refs/tags: v1.7.9
Only in ./refs/tags: v1.8.0
Only in ./refs/tags: v1.8.1
Only in ./refs/tags: v1.8.2
Only in ./refs/tags: v1.8.3
Only in ./refs/tags: v1.8.4
Only in ./refs/tags: v1.8.5
Only in ./refs/tags: v1.8.6
Only in ./refs/tags: v1.8.7
Only in ./refs/tags: v1.8.8
Only in ./refs/tags: v1.8.9
Only in ./refs/tags: v1.9.0
Only in ./refs/tags: v1.9.1
Only in ./refs/tags: v1.9.10
Only in ./refs/tags: v1.9.11
Only in ./refs/tags: v1.9.12
Only in ./refs/tags: v1.9.13
Only in ./refs/tags: v1.9.14
Only in ./refs/tags: v1.9.15
Only in ./refs/tags: v1.9.2
Only in ./refs/tags: v1.9.3
Only in ./refs/tags: v1.9.4
Only in ./refs/tags: v1.9.5
Only in ./refs/tags: v1.9.6
Only in ./refs/tags: v1.9.7
Only in ./refs/tags: v1.9.8
Only in ./refs/tags: v1.9.9
Only in ./refs/tags: v10.2.3
Only in ./refs/tags: vv1.2.3
Only in /Users/x/tmp/86cbb66aa0091673f15a828b4042911b3c116cded9ab998b7ab8e0e42f6164a2: shallow
➜  86cbb66aa0091673f15a828b4042911b3c116cded9ab998b7ab8e0e42f6164a2 (main)

@seankhliao any ideas? Any more info / tests I can provide?

EDIT: reiterating that it all works fine on v1.19

@seankhliao seankhliao added WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. and removed WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. labels Mar 16, 2023
@jpduckwo
Copy link
Author

Running v1.19.7 vs v1.20.2

go clean -modcache
go get -x git-codecommit.ap-southeast-2.amazonaws.com/v1/repos/app.lib.git@develop >> goget.log 2>&1

goget-v1.19.log - working fine
goget-v1.20.2..log - fails

There must be something in the structure of the folder that it creates for the repo so that it is different and fails for 1.20.2... anyone got any ideas?

@dingeldeiner
Copy link

Hello! I had a similar issue with git a few weeks ago and found this blog post, hope it helps! I've ran into this error a few times now in unrelated projects.

@jpduckwo
Copy link
Author

jpduckwo commented Apr 10, 2023

Thanks @dingeldeiner, I can't run git gc it on the AWS CodeCommit repo so not sure that it helps me. If I run gc on my local copy (not the go mods dirs) it doesn't present any issues to be fixed. If I clone --bare the entire repo I also don't have any issues. I don't understand how it can be a git issue when it all works fine with version 1.19?

@seankhliao seankhliao added WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. and removed WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. labels Jul 9, 2023
@ywooer
Copy link

ywooer commented Aug 3, 2023

@jpduckwo Hello, I have also encountered the same problem, have you already solved it?

@jpduckwo
Copy link
Author

jpduckwo commented Aug 3, 2023

Hi @ywooer, no, we have just stuck with 1.19. I was waiting to see if anyone else reported having the same issue. I did some combing through the logs to try and find out what was happening differently on 1.20.2 and the furthest I got was the way Go initialises the folder before pulling the code. I still think the issue is with the behaviour of Go and not my repo based on my tests. Do you see the exact same symptoms?

@ywooer
Copy link

ywooer commented Aug 18, 2023

@jpduckwo Yes, I tried go get -x with 1.19 and 1.20, and I saw the same logs with your's. In addition, I found go get xxx@tag work fine, but go get xxx@commitId not.

@jpduckwo
Copy link
Author

jpduckwo commented Sep 5, 2023

Hi, update from my side. We tested further with v1.21:

  • Created a new CodeCommit repository and tried with that - no luck
  • Tried a cut down version of the git history and tags (last month, latest tag only) - no luck
  • Tried to use the commitId instead of the branch - no luck
  • Tag worked but we didn't want the CI to have any write access to create a tag for the develop HEAD in the build process

So overall this issue is still there, and the process works fine with 1.19

As a permanent workaround for the issue we changed the build process to git clone the repo into a new folder and do a go mod edit -replace <repo>=<local folder> before the build.

It would be great if this was fixed one day - I'm pretty sure it's something to do with the folder structure that go get sets up before it does the clone. Maybe it's the local git version of CodeCommit that doesn't like this new way.

@jpduckwo
Copy link
Author

jpduckwo commented Sep 5, 2023

I think waitingforinfo tag isn't applicable here any more

@ianlancetaylor
Copy link
Contributor

@gopherbot please remove label WaitingForInfo

@gopherbot gopherbot removed the WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. label Sep 5, 2023
@cherrymui cherrymui added the GoCommand cmd/go label Sep 7, 2023
@cherrymui cherrymui added the NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. label Sep 7, 2023
@cherrymui cherrymui added this to the Backlog milestone Sep 7, 2023
@cherrymui
Copy link
Member

cc @bcmills @matloob

@bcmills
Copy link
Contributor

bcmills commented Sep 7, 2023

@jpduckwo, what Git server implementation is being used to serve the repo? (Is it the mainline git server, something based on JGit, some other implementation..?)

The reason I ask is because the last time we saw this kind of error (in #31399) it was due to a JGit implementation bug. If CodeCommit is using an outdated or buggy Git implementation, that should be fixed on the CodeCommit side, not worked around on the Go side.

(#56881 leads me to believe that there is a bug in Go's Git handling, but that bug does not manifest as a did not send all necessary objects error from the git command itself.)

@bcmills bcmills added the WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. label Sep 7, 2023
@jpduckwo
Copy link
Author

jpduckwo commented Sep 7, 2023

Hey @bcmill, thanks for your reply. I will reach out to AWS to see if they can divulge the git server version that CodeCommit uses.

I have said this several times already, but just reiterating that this all works with version 1.19 perfectly fine. Was there some git work-around that was removed in 1.20+? Something has changed in Go that caused this break. However, I do agree that Go shouldn't have to work around any buggy server issues. But also, I've not heard of, or experienced any issues with other tooling used with CodeCommit, and I've been using it for 7 years.

@seankhliao seankhliao added WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. and removed WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. labels Sep 7, 2023
@jpduckwo
Copy link
Author

jpduckwo commented Sep 7, 2023

@ywooer Just checking if your issue was also with CodeCommit?

@seankhliao seankhliao added WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. and removed WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. labels Sep 18, 2023
@gopherbot
Copy link
Contributor

Timed out in state WaitingForInfo. Closing.

(I am just a bot, though. Please speak up if this is a mistake or you have the requested information.)

@gopherbot gopherbot closed this as not planned Won't fix, can't repro, duplicate, stale Oct 18, 2023
@jpduckwo
Copy link
Author

AWS came back and said that CodeCommit is using a custom git server underneath the hood - not JGit just FYI

@nayan-7span
Copy link

Hello! I had a similar issue with git a few weeks ago and found this blog post, hope it helps! I've ran into this error a few times now in unrelated projects.

Thank You dingeldeiner, it is Worked for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
GoCommand cmd/go NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.
Projects
None yet
Development

No branches or pull requests

9 participants