diff --git a/Makefile b/Makefile index 4ba4680be..bc3eb4809 100644 --- a/Makefile +++ b/Makefile @@ -85,7 +85,8 @@ test: go test ./... fuzz: $(GO-FUZZ-BUILD) - $(GO-FUZZ-BUILD) ./tests/fuzz/... + # This is a hack because of this bug https://github.com/golang/go/issues/44129 + cd tests/fuzz;GOFLAGS=-mod=mod $(GO-FUZZ-BUILD);cd ../../;go mod tidy clean: rm -rf dist diff --git a/go.sum b/go.sum index 4290a2596..980095bde 100644 --- a/go.sum +++ b/go.sum @@ -347,7 +347,6 @@ github.com/docker/go-units v0.4.0/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDD github.com/docopt/docopt-go v0.0.0-20180111231733-ee0de3bc6815/go.mod h1:WwZ+bS3ebgob9U8Nd0kOddGdZWjyMGR8Wziv+TBNwSE= github.com/dustin/go-humanize v0.0.0-20171111073723-bb3d318650d4/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk= github.com/dustin/go-humanize v1.0.0/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk= -github.com/dvyukov/go-fuzz v0.0.0-20210914135545-4980593459a1 h1:YQOLTC8zvFaNSEuMexG0i7pY26bOksnQFsSJfGclo54= github.com/dvyukov/go-fuzz v0.0.0-20210914135545-4980593459a1/go.mod h1:11Gm+ccJnvAhCNLlf5+cS9KjtbaD5I5zaZpFMsTHWTw= github.com/eapache/go-resiliency v1.1.0/go.mod h1:kFI+JgMyC7bLPUVY133qvEBtVayf5mFgVsvEsIPBvNs= github.com/eapache/go-xerial-snappy v0.0.0-20180814174437-776d5712da21/go.mod h1:+020luEh2TKB4/GOp8oxxtq0Daoen/Cii55CzbTV6DU= diff --git a/hack/tools/tools.go b/hack/tools/tools.go index 21ba3f5a2..9eed603ab 100644 --- a/hack/tools/tools.go +++ b/hack/tools/tools.go @@ -22,5 +22,6 @@ import ( _ "github.com/AdaLogics/go-fuzz-headers" _ "github.com/dvyukov/go-fuzz/go-fuzz" _ "github.com/dvyukov/go-fuzz/go-fuzz-build" + _ "github.com/dvyukov/go-fuzz/go-fuzz-dep" _ "github.com/go-swagger/go-swagger/cmd/swagger" )