Skip to content

Commit

Permalink
Codify solution to uber-go/mock#185 for MacOS users
Browse files Browse the repository at this point in the history
  • Loading branch information
kimorris27 committed Oct 10, 2024
1 parent 96637db commit db0b10c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ discoverycache:
$(MAKE) generate

.PHONY: generate
generate: install-tools
generate: install-tools fix-macos-mockgen
go generate ./...

# TODO: This does not work outside of GOROOT. We should replace all usage of the
Expand Down Expand Up @@ -348,6 +348,13 @@ xmlcov: $(GOCOV) $(GOCOV_XML)
install-tools: $(BINGO)
$(BINGO) get -l

# Fixes https://github.com/uber-go/mock/issues/185
.PHONY: fix-macos-mockgen
fix-macos-mockgen:
ifeq ($(shell uname -s),Darwin)
codesign -f -s - ${GOPATH}/bin/mockgen
endif

###############################################################################
# Containerized CI/CD RP
###############################################################################
Expand Down

0 comments on commit db0b10c

Please sign in to comment.