fix: correctly copy binaries in make install (#517)

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.
This commit is contained in:
Colin Adler
2022-03-21 20:13:52 -05:00
committed by GitHub
parent b55a67a36c
commit 01ab48724e

View File

@ -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
.PHONY: snapshot