Commit Graph

56 Commits

Author SHA1 Message Date
Jordan Liggitt
a8991a108a Enable update-bazel.sh outside of GOPATH 2019-11-26 17:33:57 -05:00
Marek Siarkowicz
e7d5659943 Restrict visibility of prometheus to enforce usage of k8s.io/component-base/metrics 2019-11-07 09:12:55 +01:00
Jordan Liggitt
9f30c783bc bump kazel, bazel, gazelle
hack/pin-dependency.sh k8s.io/repo-infra v0.0.1-alpha.1
To fix non-idempotent BUILD file generation

hack/pin-dependency.sh github.com/bazelbuild/bazel-gazelle v0.19.0
hack/pin-dependench.sh github.com/bazelbuild/buildtools 0.29.0
for go1.13.3 support

hack/lint-dependencies.sh

hack/pin-dependency.sh github.com/bazelbuild/buildtools v0.0.0-20190917191645-69366ca98f89
to pick up preferred version for repo-infra
2019-11-06 17:39:05 -05:00
Odin Ugedal
65d93bbe48
Fix ordering settings in verify bazel
In coreutils LC_ALL=C is required to make sorting stable across
platoforms and locales.

$ echo "a-c\nabc" | LANG=C LC_ALL=C sort
a-c
abc

$ echo "a-c\nabc" | LANG=C sort
abc
a-c
2019-07-01 20:17:35 +02:00
Kubernetes Prow Robot
7334492260
Merge pull request #79502 from BenTheElder/silent-errors
suppress libseccomp pkg-config errors
2019-06-28 13:57:54 -07:00
Benjamin Elder
5c6d68caba automatically tag tests in test/integration/* as integration 2019-06-27 23:19:06 -07:00
Benjamin Elder
74939b6b17 supress libseccomp pkg-config errors 2019-06-27 22:52:48 -07:00
Benjamin Elder
d596093925 automatically set clinkopts 2019-06-24 11:11:44 -07:00
Jordan Liggitt
2ea3cbdcbc Update hack scripts to use go mod 2019-04-03 10:19:39 -04:00
Andrew Kim
a6c3a26c34 fix hack/update-bazel.sh for mac os environments 2019-03-06 15:47:25 -05:00
Jeff Grafton
392ad719eb add comments 2019-02-25 15:34:09 -08:00
Jeff Grafton
883b6cff0d Generate a repos_generated.bzl file with all staging repos
Additionally, ensure that every staging repo has a BUILD file at its
root.

Also, remove a gazelle directive we no longer need.
2019-02-25 15:33:46 -08:00
SataQiu
d357bcd2cd fix some shellcheck failures in hack 2019-02-25 11:38:56 +08:00
Benjamin Elder
cb68f3edf9 autotag vendor as manual in update-bazel 2019-02-12 18:38:36 -08:00
Jeff Grafton
06d5c50eb2 Update to latest kazel and update generated files
Also switch from github.com/kubernetes/repo-infra to k8s.io/repo-infra.
2019-01-08 14:47:26 -08:00
Jeff Grafton
b25ad9c862 Set gazelle:proto disable_global 2018-09-05 15:27:15 -07:00
Christoph Blecker
2edd10709c
Fix run-in-gopath issue with symlink'd gopath 2018-06-25 14:25:55 -07:00
Jeff Grafton
b0af0f68b1 gazelle: set proper importmap on dependencies in vendor/ 2018-06-22 16:22:18 -07:00
Jeff Grafton
f31183fa3d Set gazelle:prefix on staging/src and remove sed hack 2018-06-22 16:22:18 -07:00
Jeff Grafton
bfc2d7bdd7 gazelle: disable proto rules 2018-06-22 16:22:18 -07:00
Tim Hockin
74451de6df Vendor kazel 2018-03-29 17:01:32 -07:00
Tim Hockin
3e583de0ac Vendor gazelle 2018-03-29 17:01:30 -07:00
Jeff Grafton
009134a304 Update to gazelle 0.10.1 2018-03-23 16:16:52 -07:00
Jeff Grafton
0c1f69a213 Update gazelle to latest to fix vendoring issue 2018-03-02 11:58:31 -08:00
Mike Danese
4186abf72b bzl: fix update-bazel.sh
pickup a85b63b06c
2018-02-26 11:01:30 -08:00
Jeff Grafton
7cf152e0b0 Update bazelbuild/rules_go, kubernetes/repo-infra, and gazelle dependencies 2018-02-16 13:41:43 -08:00
Jeff Grafton
c1554d08d8 Install gazelle from bazelbuild/bazel-gazelle instead of rules_go 2018-01-12 12:27:34 -08:00
Jeff Grafton
b13263eeb3 Bump rules_go to 0.8.1 2017-12-23 13:12:02 -08:00
Kubernetes Submit Queue
ee3a08a772
Merge pull request #54001 from cblecker/sed-func
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Extract gnu-sed detection into a function

**What this PR does / why we need it**:
Moves gnu-sed detection into a reusable function across scripts (considering it's in multiple places).

**Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #

**Special notes for your reviewer**:

**Release note**:
```release-note
NONE
```
2017-10-31 03:09:46 -07:00
Maru Newby
55fcc45c7b Update kazel hash to latest 2017-10-25 21:50:06 -07:00
Christoph Blecker
f5e8eca20b
Extract gnu-sed detection into a function 2017-10-16 13:21:09 -07:00
Christoph Blecker
b1b4770c3c
Update bazelbuild/rules_go to support go1.9 2017-10-16 10:41:51 -07:00
Dr. Stefan Schimanski
4673f6b558 update-bazel.sh: fix on Mac 2017-10-16 14:44:38 +02:00
Jeff Grafton
32551a3322 Use -proto=legacy with gazelle, and manually fix staging/ import paths 2017-10-15 18:13:56 -07:00
Jeff Grafton
638ea5205f Update rules_go, repo-infra, and rules_docker dependencies
This requires bazel 0.6.0+.
2017-10-15 18:13:56 -07:00
Tim Hockin
a29c048e33 Clean up godep scripts to be self-contained 2017-09-29 15:16:03 -07:00
Jeff Grafton
795d09a800 Always create vendor/BUILD in hack/update-bazel.sh 2017-08-24 14:05:57 -07:00
Jeff Grafton
671cd2bc6b Bump repo-infra dependency to fix go_genrule without sandboxing 2017-08-23 13:11:03 -07:00
Jeff Grafton
eab549a678 Bump repo-infra/kazel dependency 2017-08-16 14:31:45 -07:00
Jeff Grafton
cce84c3e19 Use gazelle and kazel together to manage BUILD files 2017-08-11 09:30:23 -07:00
Jeff Grafton
e2ce25da4b Update kazel to include kubernetes/repo-infra#21 2017-08-02 18:32:50 -07:00
Jeff Grafton
64b0c9ec47 Switch from gazel to kazel, and move kazelcfg into build/root 2017-07-18 12:48:51 -07:00
Jeff Grafton
ed7c75e324 Update gazel to v17 2017-04-27 15:01:34 -07:00
Joe Finney
8e84a9aedc Add go_genrule for zz_generated.openapi.go.
Clean zz_generated.openapi.go before running gazel.
2017-04-25 17:51:36 -07:00
Mike Danese
59fc948a06 bump rules_go and go version for bazel builds
and bump gazel to a version that supports 1.8
2017-04-25 11:23:33 -07:00
Jeff Grafton
37dda6c2fd If we already have the right version of gazel installed, use it 2017-03-29 09:32:34 -07:00
Jacob Simpson
2dc36870c4 update-bazel.sh to treat GOPATH as a path
Adds functionality to look at the components of the GOPATH looking for
the gazel executable, rather than treating the GOPATH as if it was a
single directory.
2017-02-16 14:40:05 -08:00
Mike Danese
cbe5bd97b4 bump gazel to v14 2017-02-09 11:09:13 -08:00
Mike Danese
04a7880b61 update repo local config to allow redirects from gopkg.in 2017-02-02 10:20:17 -08:00
Jeff Grafton
ab0c903c7f Update to gazel v13 2017-01-05 14:14:06 -08:00