builds: fix "Killed" error with make dev (#15003)
Previously, I would sometimes get Killed errors when executing the binary created by `make dev`. This is because we were using `cp` and OSX has a bug where it caches the old signature and so doesn't allow the new binary to run (see https://apple.stackexchange.com/a/428388)
This commit is contained in:
parent
820ae3b186
commit
19d983936c
|
@ -149,7 +149,9 @@ dev: dev-build
|
||||||
dev-build:
|
dev-build:
|
||||||
mkdir -p bin
|
mkdir -p bin
|
||||||
CGO_ENABLED=0 go install -ldflags "$(GOLDFLAGS)" -tags "$(GOTAGS)"
|
CGO_ENABLED=0 go install -ldflags "$(GOLDFLAGS)" -tags "$(GOTAGS)"
|
||||||
cp -f ${MAIN_GOPATH}/bin/consul ./bin/consul
|
# rm needed due to signature caching (https://apple.stackexchange.com/a/428388)
|
||||||
|
rm -f ./bin/consul
|
||||||
|
cp ${MAIN_GOPATH}/bin/consul ./bin/consul
|
||||||
|
|
||||||
dev-docker: linux
|
dev-docker: linux
|
||||||
@echo "Pulling consul container image - $(CONSUL_IMAGE_VERSION)"
|
@echo "Pulling consul container image - $(CONSUL_IMAGE_VERSION)"
|
||||||
|
|
Loading…
Reference in New Issue