Content-Length: 332681 | pFad | http://github.com/google/oss-fuzz/pull/11677/commits/ba116825ee15d571a46a18abc59f9a850455e1e1

DB Upgrade to Go 1.22 by justindhillon · Pull Request #11677 · google/oss-fuzz · GitHub
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

Upgrade to Go 1.22 #11677

Merged
merged 2 commits into from
May 6, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
upgrade to Go 1.22
  • Loading branch information
justindhillon committed Mar 8, 2024
commit ba116825ee15d571a46a18abc59f9a850455e1e1
4 changes: 2 additions & 2 deletions infra/base-images/base-builder/install_go.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
################################################################################

cd /tmp
wget https://go.dev/dl/go1.21.0.linux-amd64.tar.gz
wget https://go.dev/dl/go1.22.1.linux-amd64.tar.gz
mkdir temp-go
tar -C temp-go/ -xzf go1.21.0.linux-amd64.tar.gz
tar -C temp-go/ -xzf go1.22.1.linux-amd64.tar.gz
mkdir /root/.go/
mv temp-go/go/* /root/.go/
rm -rf temp-go
Expand Down
1 change: 1 addition & 0 deletions projects/cryptofuzz/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ RUN pip3 install 'pip>=20'

RUN wget https://go.dev/dl/go1.20.10.linux-amd64.tar.gz
RUN wget https://go.dev/dl/go1.21.3.linux-amd64.tar.gz
RUN wget https://go.dev/dl/go1.22.1.linux-amd64.tar.gz
RUN git clone --depth 1 https://github.com/golang/go go-dev
RUN git clone --depth 1 https://github.com/golang/crypto go-crypto
RUN git clone --depth 1 https://github.com/golang/sys.git go-sys
Expand Down
15 changes: 13 additions & 2 deletions projects/cryptofuzz/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,17 @@ export GO111MODULE=off
mkdir $SRC/go-bootstrap
cd $SRC/go-bootstrap

tar zxf $SRC/go1.22.1.linux-amd64.tar.gz
mv go/ go-122
export GOROOT_122=$SRC/go-bootstrap/go-122/
export GOPATH_122=$GOROOT_122/packages/
mkdir $GOPATH_122
mkdir -p $GOPATH_122/src/golang.org/x/crypto/
cp -R $SRC/go-crypto/* $GOPATH_122/src/golang.org/x/crypto/
mkdir -p $GOPATH_122/src/golang.org/x/sys/
cp -R $SRC/go-sys/* $GOPATH_122/src/golang.org/x/sys/
export PATH_GO_121=$GOROOT_122/bin:$GOROOT_122/packages/bin:$PATH

tar zxf $SRC/go1.21.3.linux-amd64.tar.gz
mv go/ go-121
export GOROOT_121=$SRC/go-bootstrap/go-121/
Expand Down Expand Up @@ -511,11 +522,11 @@ cd $SRC/cryptofuzz/modules/monero
make -B

##############################################################################
# Compile Cryptofuzz Golang (121) module
# Compile Cryptofuzz Golang (122) module
if [[ $CFLAGS != *sanitize=memory* && $CFLAGS != *-m32* ]]
then
cd $SRC/cryptofuzz/modules/golang
GOROOT="$GOROOT_121" GOPATH="$GOPATH_121" PATH="$PATH_GO_121" make -B
GOROOT="$GOROOT_122" GOPATH="$GOPATH_122" PATH="$PATH_GO_122" make -B
fi

if [[ $CFLAGS != *-m32* ]]
Expand Down
Loading








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/google/oss-fuzz/pull/11677/commits/ba116825ee15d571a46a18abc59f9a850455e1e1

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy