Skip to content

Commit

Permalink
Merge pull request #987 from otaviof/fix-go-mod-vendor
Browse files Browse the repository at this point in the history
Avoid Unnecessary `go mod vendor`
  • Loading branch information
openshift-merge-robot authored Jan 20, 2022
2 parents a3ff753 + 3f9d03a commit fff39dc
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 @@ -239,11 +235,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 @@ -265,4 +261,3 @@ kind-tekton:
kind:
./hack/install-kind.sh
./hack/install-registry.sh

0 comments on commit fff39dc

Please sign in to comment.