Skip to content

Commit 58664cc

Browse files
perdasilvaPer Goncalves da Silva
andauthored
Update mockgen target to remove vendorlesspath fix (#3726)
Signed-off-by: Per Goncalves da Silva <[email protected]> Co-authored-by: Per Goncalves da Silva <[email protected]>
1 parent c1c1696 commit 58664cc

File tree

2 files changed

+1
-19
lines changed

2 files changed

+1
-19
lines changed

Makefile

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -340,11 +340,7 @@ mockgen: #HELP Generate mocks
340340
# Consider using counterfeiter:generate directives to speed things up.
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.
343-
@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/...
343+
GO111MODULE=on GOWORK=off COUNTERFEITER_NO_GENERATE_WARNING=1 go generate ./pkg/...
348344

349345
#SECTION Verification
350346

hack/overlays/goimports_vendorlesspath.go

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

0 commit comments

Comments
 (0)