diff --git a/src/sbom/Makefile.inc b/src/sbom/Makefile.inc index 21e2fa4e18..7783f092c3 100644 --- a/src/sbom/Makefile.inc +++ b/src/sbom/Makefile.inc @@ -99,7 +99,7 @@ $(build-dir): $(build-dir)/goswid: | $(build-dir) echo " SBOM building goswid tool" cd util/goswid; \ - GO111MODULE=on go build -o $(abspath $@) ./cmd/goswid + GOPATH=$(abspath build/go) GO111MODULE=on go build -modcacherw -o $(abspath $@) ./cmd/goswid ## Generate all .json files