mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-14 02:20:53 +00:00
Add RNode implementation of label and annotation selectors.
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
MYGOBIN := $(shell go env GOPATH)/bin
|
||||
export PATH := $(MYGOBIN):$(PATH)
|
||||
|
||||
.PHONY: generate license fix vet fmt test lint tidy
|
||||
.PHONY: generate license fix vet fmt test lint tidy clean
|
||||
all: generate license fix vet fmt test lint tidy
|
||||
|
||||
fix:
|
||||
@@ -19,17 +19,23 @@ generate:
|
||||
|
||||
license:
|
||||
(which $(MYGOBIN)/addlicense || go get github.com/google/addlicense)
|
||||
$(MYGOBIN)/addlicense -y 2019 -c "The Kubernetes Authors." -f LICENSE_TEMPLATE .
|
||||
$(MYGOBIN)/addlicense -c "The Kubernetes Authors." -f LICENSE_TEMPLATE .
|
||||
|
||||
tidy:
|
||||
go mod tidy
|
||||
|
||||
lint:
|
||||
(which $(MYGOBIN)/golangci-lint || go get github.com/golangci/golangci-lint/cmd/golangci-lint@v1.19.1)
|
||||
$(MYGOBIN)/golangci-lint run ./...
|
||||
(which $(MYGOBIN)/golangci-lint || \
|
||||
go get github.com/golangci/golangci-lint/cmd/golangci-lint@v1.19.1)
|
||||
$(MYGOBIN)/golangci-lint \
|
||||
--skip-dirs yaml/internal/k8sgen/pkg \
|
||||
run ./...
|
||||
|
||||
test:
|
||||
go test -cover ./...
|
||||
|
||||
vet:
|
||||
go vet ./...
|
||||
|
||||
clean:
|
||||
rm -rf yaml/internal/k8sgen/pkg
|
||||
|
||||
Reference in New Issue
Block a user