From 3b11f0babbce01ddd9077080434b957d53a129ef Mon Sep 17 00:00:00 2001 From: Colin Adler Date: Mon, 21 Mar 2022 19:55:34 -0500 Subject: [PATCH] fix: correctly copy binaries in `make install` Since it copied to a nested directory, it's very confusing if you already had a `coder` binary in your `~/go/bin`, since it would always prefer the `coder` in the higher directory. --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index c0e7551ad60c3..0d8210b549f5f 100644 --- a/Makefile +++ b/Makefile @@ -51,7 +51,7 @@ gen: database/generate peerbroker/proto provisionersdk/proto provisionerd/proto install: bin @echo "--- Copying from bin to $(INSTALL_DIR)" - cp -r ./dist/coder_$(GOOS)_$(GOARCH) $(INSTALL_DIR) + cp -r ./dist/coder_$(GOOS)_$(GOARCH)/* $(INSTALL_DIR) @echo "-- CLI available at $(shell ls $(INSTALL_DIR)/coder*)" .PHONY: install @@ -92,4 +92,4 @@ site/out: snapshot: goreleaser release --snapshot --rm-dist -.PHONY: snapshot \ No newline at end of file +.PHONY: snapshot