mirror of
https://github.com/coder/coder.git
synced 2025-07-12 00:14:10 +00:00
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:
4
Makefile
4
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
|
||||
.PHONY: snapshot
|
||||
|
Reference in New Issue
Block a user