Skip to content

Commit

Permalink
Avoid unnecessary go mod vendor
Browse files Browse the repository at this point in the history
  • Loading branch information
otaviof committed Jan 20, 2022
1 parent 9ceb2f0 commit 3f9d03a
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,10 @@ CRD_OPTIONS ?= "crd:trivialVersions=true,preserveUnknownFields=false"

default: build

.PHONY: vendor
vendor: go.mod go.sum
go mod vendor

.PHONY: build
build: $(CONTROLLER)

$(CONTROLLER): vendor
.PHONY: $(CONTROLLER)
$(CONTROLLER):
go build -trimpath $(GO_FLAGS) -o $(CONTROLLER) cmd/shipwright-build-controller/main.go

.PHONY: build-plain
Expand Down Expand Up @@ -240,11 +236,11 @@ install-controller-kind: install-apis
install-strategies: install-apis
kubectl apply -R -f samples/buildstrategy/

local: vendor install-strategies
local: install-strategies
CONTROLLER_NAME=shipwright-build-controller \
go run cmd/shipwright-build-controller/main.go $(ZAP_FLAGS)

local-plain: vendor
local-plain:
CONTROLLER_NAME=shipwright-build-controller \
go run cmd/shipwright-build-controller/main.go $(ZAP_FLAGS)

Expand All @@ -266,4 +262,3 @@ kind-tekton:
kind:
./hack/install-kind.sh
./hack/install-registry.sh

0 comments on commit 3f9d03a

Please sign in to comment.