mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-11 17:12:51 +00:00
Move multi-module-span.go to cmd/prchecker
This commit is contained in:
8
Makefile
8
Makefile
@@ -72,6 +72,11 @@ $(MYGOBIN)/pluginator:
|
|||||||
cd cmd/pluginator; \
|
cd cmd/pluginator; \
|
||||||
go install .
|
go install .
|
||||||
|
|
||||||
|
# Build from local source.
|
||||||
|
$(MYGOBIN)/prchecker:
|
||||||
|
cd cmd/prchecker; \
|
||||||
|
go install .
|
||||||
|
|
||||||
# Build from local source.
|
# Build from local source.
|
||||||
$(MYGOBIN)/kustomize:
|
$(MYGOBIN)/kustomize:
|
||||||
cd kustomize; \
|
cd kustomize; \
|
||||||
@@ -79,12 +84,13 @@ $(MYGOBIN)/kustomize:
|
|||||||
|
|
||||||
.PHONY: install-tools
|
.PHONY: install-tools
|
||||||
install-tools: \
|
install-tools: \
|
||||||
|
$(MYGOBIN)/gh \
|
||||||
$(MYGOBIN)/goimports \
|
$(MYGOBIN)/goimports \
|
||||||
$(MYGOBIN)/golangci-lint-kustomize \
|
$(MYGOBIN)/golangci-lint-kustomize \
|
||||||
$(MYGOBIN)/gh \
|
|
||||||
$(MYGOBIN)/gorepomod \
|
$(MYGOBIN)/gorepomod \
|
||||||
$(MYGOBIN)/mdrip \
|
$(MYGOBIN)/mdrip \
|
||||||
$(MYGOBIN)/pluginator \
|
$(MYGOBIN)/pluginator \
|
||||||
|
$(MYGOBIN)/prchecker \
|
||||||
$(MYGOBIN)/stringer
|
$(MYGOBIN)/stringer
|
||||||
|
|
||||||
### Begin kustomize plugin rules.
|
### Begin kustomize plugin rules.
|
||||||
|
|||||||
8
cmd/prchecker/go.mod
Normal file
8
cmd/prchecker/go.mod
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
module sigs.k8s.io/kustomize/cmd/prchecker
|
||||||
|
|
||||||
|
go 1.15
|
||||||
|
|
||||||
|
require (
|
||||||
|
github.com/google/go-github v17.0.0+incompatible
|
||||||
|
github.com/google/go-querystring v1.0.0 // indirect
|
||||||
|
)
|
||||||
4
cmd/prchecker/go.sum
Normal file
4
cmd/prchecker/go.sum
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
github.com/google/go-github v17.0.0+incompatible h1:N0LgJ1j65A7kfXrZnUDaYCs/Sf4rEjNlfyDHW9dolSY=
|
||||||
|
github.com/google/go-github v17.0.0+incompatible/go.mod h1:zLgOLi98H3fifZn+44m+umXrS52loVEgC2AApnigrVQ=
|
||||||
|
github.com/google/go-querystring v1.0.0 h1:Xkwi/a1rcvNg1PPYe5vI8GbeBY/jrVuDX5ASuANWTrk=
|
||||||
|
github.com/google/go-querystring v1.0.0/go.mod h1:odCYkC5MyYFN7vkCjXpyrEuKhc/BUO6wN/zVPAxq5ck=
|
||||||
@@ -1,12 +1,16 @@
|
|||||||
// multi-module-span script:
|
// prchecker examines pull requests
|
||||||
// A script which can detect when a pull request would make changes which
|
|
||||||
// span a series of restricted directories (ex: multiple go modules or projects)
|
|
||||||
//
|
//
|
||||||
// When a pull request includes files which span two modules the script will
|
// - When a PR includes files from multiple modules that we'd rather not
|
||||||
// exit with a non-zero exit code.
|
// modify at the same time (in an effort to have more self-contained
|
||||||
|
// release notes), the script will exit with a non-zero exit code.
|
||||||
//
|
//
|
||||||
// Running:
|
// Usage:
|
||||||
// go run multi-module-span.go -owner=kubernetes-sigs -repo=kustomize -pr=2997 cmd/config api/ kustomize/ kyaml/
|
//
|
||||||
|
// go run . \
|
||||||
|
// -owner=kubernetes-sigs \
|
||||||
|
// -repo=kustomize \
|
||||||
|
// -pr=2997 \
|
||||||
|
// cmd/config api kustomize kyaml
|
||||||
|
|
||||||
package main
|
package main
|
||||||
|
|
||||||
Reference in New Issue
Block a user