Skip to content

Commit 0f503bb

Browse files
author
Per Goncalves da Silva
committed
Update mockgen to remove missing reference to no longer existing vendorlesspath.go
Signed-off-by: Per Goncalves da Silva <[email protected]>
1 parent 2b1d675 commit 0f503bb

File tree

2 files changed

+4
-18
lines changed

2 files changed

+4
-18
lines changed

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -341,10 +341,10 @@ mockgen: #HELP Generate mocks
341341
# See https://github.com/maxbrunsfeld/counterfeiter#step-2b---add-counterfeitergenerate-directives for more information.
342342
# Set the "COUNTERFEITER_NO_GENERATE_WARNING" environment variable to suppress this message.
343343
@set -e; \
344-
overlay_file=$$(mktemp "$(CURDIR)/hack/overlays/goimports_overlay.XXXXXX.json"); \
345-
trap 'rm -f "$$overlay_file"' EXIT; \
346-
printf '{\n "Replace": {\n "%s/vendor/golang.org/x/tools/imports/vendorlesspath.go": "%s/hack/overlays/goimports_vendorlesspath.go"\n }\n}\n' "$(CURDIR)" "$(CURDIR)" > "$$overlay_file"; \
347-
GO111MODULE=on GOWORK=off COUNTERFEITER_NO_GENERATE_WARNING=1 GOFLAGS="$$GOFLAGS -overlay=$$overlay_file" go generate ./pkg/...
344+
# overlay_file=$$(mktemp "$(CURDIR)/hack/overlays/goimports_overlay.XXXXXX.json"); \
345+
# trap 'rm -f "$$overlay_file"' EXIT; \
346+
# printf '{\n "Replace": {\n "%s/vendor/golang.org/x/tools/imports/vendorlesspath.go": "%s/hack/overlays/goimports_vendorlesspath.go"\n }\n}\n' "$(CURDIR)" "$(CURDIR)" > "$$overlay_file"; \
347+
GO111MODULE=on GOWORK=off COUNTERFEITER_NO_GENERATE_WARNING=1 go generate ./pkg/...
348348

349349
#SECTION Verification
350350

hack/overlays/goimports_vendorlesspath.go

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)