fuzz: Ensure Go 1.18 for fuzz image

- Upgrade fuzz container to Go 1.18.
- Upgrade worker to Go 1.18.
- The mod replace in tests/fuzz was pointing to the wrong controller.

Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
This commit is contained in:
Paulo Gomes 2022-08-23 08:40:01 +01:00
parent 09ef651beb
commit c2353a7fe6
No known key found for this signature in database
GPG Key ID: 9995233870E99BEE
3 changed files with 11 additions and 2 deletions

View File

@ -17,6 +17,10 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: 1.18.x
- name: Restore Go cache
uses: actions/cache@v3
with:

View File

@ -1,5 +1,10 @@
FROM golang:1.18 AS go
FROM gcr.io/oss-fuzz-base/base-builder-go
# ensures golang 1.18 to enable go native fuzzing.
COPY --from=go /usr/local/go /usr/local/
COPY ./ $GOPATH/src/github.com/fluxcd/source-controller/
COPY ./tests/fuzz/oss_fuzz_build.sh $SRC/build.sh

View File

@ -2,6 +2,6 @@ module github.com/fluxcd/source-controller/tests/fuzz
go 1.18
replace github.com/fluxcd/kustomize-controller/api => ../../api
replace github.com/fluxcd/source-controller/api => ../../api
replace github.com/fluxcd/kustomize-controller => ../../
replace github.com/fluxcd/source-controller => ../../