Skip to content

Commit 72271b7

Browse files
committed
infra: bump Go118FB
Signed-off-by: Adam Korczynski <[email protected]>
1 parent e7eff02 commit 72271b7

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed

infra/base-images/base-builder/install_go.sh

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818
cd /tmp
1919

2020
export GOROOT=/root/.go
21-
wget https://go.dev/dl/go1.25.0.linux-amd64.tar.gz
21+
wget https://go.dev/dl/go1.25.5.linux-amd64.tar.gz
2222
mkdir temp-go
23-
tar -C temp-go/ -xzf go1.25.0.linux-amd64.tar.gz
23+
tar -C temp-go/ -xzf go1.25.5.linux-amd64.tar.gz
2424

2525
mkdir /root/.go/
2626
mv temp-go/go/* /root/.go/
@@ -38,18 +38,19 @@ if [ -f "$GOPATH/gosigfuzz/gosigfuzz.c" ]; then
3838
fi
3939

4040
cd /tmp
41-
git clone https://github.com/AdamKorcz/go-118-fuzz-build
41+
git clone https://github.com/AdamKorcz/go-118-fuzz-build --branch=v2_2
4242
cd go-118-fuzz-build
43-
go build
43+
git checkout 65072595fdfb80eaedbc37db3837d82eb95ce7b2
44+
CGO_ENABLED=1 go build .
4445
mv go-118-fuzz-build $GOPATH/bin/
4546

4647
# Build v2 binaries
4748
git checkout v2
4849
go build .
4950
mv go-118-fuzz-build $GOPATH/bin/go-118-fuzz-build_v2
5051
pushd cmd/convertLibFuzzerTestcaseToStdLibGo
51-
go build . && mv convertLibFuzzerTestcaseToStdLibGo $GOPATH/bin/
52+
CGO_ENABLED=1 go build . && mv convertLibFuzzerTestcaseToStdLibGo $GOPATH/bin/
5253
popd
5354
pushd cmd/addStdLibCorpusToFuzzer
54-
go build . && mv addStdLibCorpusToFuzzer $GOPATH/bin/
55+
CGO_ENABLED=1 go build . && mv addStdLibCorpusToFuzzer $GOPATH/bin/
5556
popd

infra/base-images/base-runner/install_go.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ case $(uname -m) in
2121
x86_64)
2222
# Download and install Go.
2323
export GOROOT=/root/.go
24-
wget https://go.dev/dl/go1.25.0.linux-amd64.tar.gz
24+
wget https://go.dev/dl/go1.25.5.linux-amd64.tar.gz
2525
mkdir temp-go
26-
tar -C temp-go/ -xzf go1.25.0.linux-amd64.tar.gz
26+
tar -C temp-go/ -xzf go1.25.5.linux-amd64.tar.gz
2727

2828
mkdir $GOROOT
2929
mv temp-go/go/* /root/.go/
@@ -36,9 +36,10 @@ case $(uname -m) in
3636
cd $GOPATH/gocoverage && /root/.go/bin/go install ./...
3737
cd /root/.go/src/cmd/cover && /root/.go/bin/go build && mv cover $GOPATH/bin/gotoolcover
3838
pushd /tmp
39-
git clone --depth=1 https://github.com/AdamKorcz/go-118-fuzz-build --branch=v2
39+
git clone https://github.com/AdamKorcz/go-118-fuzz-build --branch=v2_2
40+
git checkout 65072595fdfb80eaedbc37db3837d82eb95ce7b2
4041
cd go-118-fuzz-build/cmd/convertLibFuzzerTestcaseToStdLibGo
41-
/root/.go/bin/go build .
42+
CGO_ENABLED=1 /root/.go/bin/go build .
4243
mv convertLibFuzzerTestcaseToStdLibGo $GOPATH/bin/
4344
popd
4445
;;

0 commit comments

Comments
 (0)