Skip to content

Commit 50ef51b

Browse files
author
Paulo Gomes
committed
fuzz: Ensure latest base images are used
Latest base image should contain Go 1.18, removing the need of updating that ourselves, apart from benefiting from latest changes upstream. Signed-off-by: Paulo Gomes <[email protected]>
1 parent 6d479e5 commit 50ef51b

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ fuzz-build: $(LIBGIT2)
234234
rm -rf $(BUILD_DIR)/fuzz/
235235
mkdir -p $(BUILD_DIR)/fuzz/out/
236236

237-
docker build . --tag local-fuzzing:latest -f tests/fuzz/Dockerfile.builder
237+
docker build . --pull --tag local-fuzzing:latest -f tests/fuzz/Dockerfile.builder
238238
docker run --rm \
239239
-e FUZZING_LANGUAGE=go -e SANITIZER=address \
240240
-e CIFUZZ_DEBUG='True' -e OSS_FUZZ_PROJECT_NAME=fluxcd \

tests/fuzz/Dockerfile.builder

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
1-
FROM golang:1.18 AS go
2-
3-
FROM gcr.io/oss-fuzz-base/base-builder-go
4-
5-
# ensures golang 1.18 to enable go native fuzzing.
6-
COPY --from=go /usr/local/go /usr/local/
1+
FROM gcr.io/oss-fuzz-base/base-builder-go-codeintelligencetesting
72

83
COPY ./ $GOPATH/src/github.com/fluxcd/source-controller/
94
COPY ./tests/fuzz/oss_fuzz_build.sh $SRC/build.sh

0 commit comments

Comments
 (0)