Commit Graph

9 Commits

Author SHA1 Message Date
Davanum Srinivas
ffef2d1f1a
add more validation to rules.yaml
We need to better catch problems like the one we fixed in:
7b6a3d6a33

Essentially a copy-paste error where had a branch pointing to staging/src/k8s.io/code-generator instead of staging/src/k8s.io/apimachinery

Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2022-11-29 15:07:34 -05:00
Sam Fowler
368ebbeddf Change yaml.load() to safe_load() 2021-01-19 15:58:12 +10:00
Nikhita Raghunath
1dffb87037 hack: ensure go version is not specified for master in publishing rules
The go version for all master branches is defined in `default-go-version`
locally.

Note that this validation isn't added to publishing-bot directly because
we still want to give users of the publishing-bot the ability to specify
specific go versions for the master branch if they need, but we want to
explicitly disallow this for kubernetes repos.
2020-07-24 14:33:05 +05:30
Jordan Liggitt
0b32e142d4 Drop k8s.io/node-api packages 2020-02-07 10:07:14 -05:00
Nikhita Raghunath
ab3cdd57b7 publishing: use deps in replace directive in rules
The list of dependencies for a repo right now is equal to the list of deps
mentioned in the require directive in the repo's go.mod file.
This means that we loose all transitive deps mentioned in the replace
directive in go.mod files.

So instead use all deps mentioned in the replace directive, and prune
any extra dependencies.

Also add a test for this in verify-publishing-bot.py
2019-06-24 14:01:20 +05:30
Davanum Srinivas
a1e511abda
Bail out on missing pyyaml dependency
Change-Id: Ib1e3b92f8e18ae554f77fede34917d5222c677af
2019-05-31 10:16:11 -04:00
Nikhita Raghunath
d474631e38 Show all missing deps when publishing-bot has no listed dependencies
Before this, it only showed one dependency in the error message.

Also, replace godeps.json with go.mod in the error message.
2019-04-05 13:08:12 +05:30
Jordan Liggitt
2ea3cbdcbc Update hack scripts to use go mod 2019-04-03 10:19:39 -04:00
Davanum Srinivas
7d06bb8bc2
verify script to ensure publishing bot rules and godeps are in sync
Change-Id: Idbad862a797916cc4408ea0099c30d0557044907
2019-03-08 07:38:11 -05:00