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

pulumi: bump Go #10720

Merged
merged 1 commit into from
Jul 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
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
5 changes: 5 additions & 0 deletions projects/pulumi/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@

FROM gcr.io/oss-fuzz-base/base-builder-go
RUN git clone --depth 1 https://github.com/pulumi/pulumi
RUN wget https://go.dev/dl/go1.20.6.linux-amd64.tar.gz \
&& mkdir temp-go \
&& rm -rf /root/.go/* \
&& tar -C temp-go/ -xzf go1.20.6.linux-amd64.tar.gz \
&& mv temp-go/go/* /root/.go/
COPY build.sh \
config_fuzzer.go \
schema_fuzzer.go \
Expand Down
10 changes: 6 additions & 4 deletions projects/pulumi/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,14 @@
#
################################################################################

cd pkg
#go mod download
# required by Go 1.20
export CXX="${CXX} -lresolv"

cd pkg
cp $SRC/schema_fuzzer.go $SRC/pulumi/pkg/codegen/schema/
compile_go_fuzzer github.com/pulumi/pulumi/pkg/v3/codegen/schema SchemaFuzzer schema_fuzzer

cp $SRC/config_fuzzer.go $SRC/pulumi/sdk/go/common/resource/config/
go mod tidy

compile_go_fuzzer github.com/pulumi/pulumi/pkg/v3/codegen/schema SchemaFuzzer schema_fuzzer
compile_go_fuzzer github.com/pulumi/pulumi/sdk/v3/go/common/resource/config FuzzConfig fuzz
compile_go_fuzzer github.com/pulumi/pulumi/sdk/v3/go/common/resource/config FuzzParseKey fuzz_parse_key
Loading