Skip to content
This repository has been archived by the owner on Oct 2, 2024. It is now read-only.

Commit

Permalink
build: use 'go install' (#9)
Browse files Browse the repository at this point in the history
Signed-off-by: Xavier Coulon <[email protected]>
  • Loading branch information
xcoulon authored Apr 18, 2024
1 parent 49a91ef commit 1bae955
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -53,16 +53,7 @@ install-golangci-lint:
# Installing
# --------------------------------------

CUR_DIR=$(shell pwd)

ifeq ($(OS),Windows_NT)
BINARY_PATH=$(CUR_DIR)/bin/check-argocd.exe
else
BINARY_PATH=$(CUR_DIR)/bin/check-argocd
endif

.PHONY: install
## build the binary and copy into $(GOPATH)/bin
install:
@go build -o $(BINARY_PATH) main.go
@cp $(BINARY_PATH) $(GOPATH)/bin
go install github.com/codeready-toolchain/argocd-checker@master

0 comments on commit 1bae955

Please sign in to comment.