Skip to content

Commit 0bbc90a

Browse files
committed
use git clone to install gogo/protobuf
Signed-off-by: Akhil Mohan <[email protected]>
1 parent 383b2dc commit 0bbc90a

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

script/setup/install-dev-tools

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,11 @@ go install github.com/golangci/golangci-lint/cmd/[email protected]
2626

2727
# the following packages need to exist in $GOPATH so we can't use
2828
# go modules-aware mode of `go get` for these includes used during
29-
# proto building
30-
cd "$GOPATH"
31-
GO111MODULE=off go get -d github.com/gogo/googleapis || true
32-
GO111MODULE=off go get -d github.com/gogo/protobuf || true
29+
# proto building. From go1.22 `go get` is no longer supported
30+
# outside of a module in the legacy GOPATH mode, hence we manually
31+
# clone the packages in the $GOPATH
32+
GOGO_DIR="$GOPATH/src/github.com/gogo"
33+
mkdir -p "$GOGO_DIR"
34+
cd "$GOGO_DIR"
35+
git clone https://github.com/gogo/googleapis
36+
git clone https://github.com/gogo/protobuf

0 commit comments

Comments
 (0)