Commit Graph

13 Commits

Author SHA1 Message Date
Eric Paris
3b7c39656c Split hack/{verify,update}-* files so we don't always go build
Right now some of the hack/* tools use `go run` and build almost every
time. There are some which expect you to have already run `go install`.
And in all cases the pre-commit hook, which runs a full build wouldn't
want to do either, since it just built!

This creates a new hack/after-build/ directory and has the scripts which
REQUIRE that the binary already be built. It doesn't test and complain.
It just fails miserably. Users should not be in this directory. Users
should just use hack/verify-* which will just do the build and then call
the "after-build" version. The pre-commit hook or anything which KNOWS
the binaries have been built can use the fast version.
2015-08-11 14:20:46 -04:00
Eric Paris
985fa94ebd Move description.sh from hack/ to hooks/
Just to get everything in one place...
2015-08-11 14:20:38 -04:00
Eric Paris
340a99c373 Use hack/verify-boilerplate.sh in pre-commit hook
Using the hack/ version is probably a little slower, but it still only
takes about .2 seconds. So probably worth the reduction in code.
2015-08-10 17:41:36 -04:00
Chao Xu
70a29c1a3a address comments, wait for travis pass 2015-07-27 21:08:02 -07:00
Chao Xu
464385281b add a tool in cmd/ to check links in go file. Currently it's only used to check the links in api descriptions (pkg/api/.../types.go). 2015-07-24 20:21:16 -07:00
Tim Hockin
efa76b72ae Run the build once during presubmit 2015-07-02 14:43:43 -07:00
nikhiljindal
a89d2da249 Adding a script to verify that swagger spec is updated 2015-06-08 04:04:57 -07:00
Wojciech Tyczynski
33318f0162 Use generated DeepCopy methods. 2015-05-28 09:03:27 +02:00
Jeff Lowdermilk
3cf4d9b2e6 Delete fails on notfound errors.
If deleting multiple resources, command will continue on error and
report not found resources at the end.
2015-05-27 16:02:54 -07:00
Wojciech Tyczynski
2df11cea32 Automatically generate conversions 2015-05-20 17:11:18 +02:00
Tim Hockin
4e9d3f7700 Use color in pre-commit 2015-05-13 12:59:04 -07:00
Tim Hockin
d0b2a418db Make git hooks print more nicely 2015-05-13 12:50:25 -07:00
Tim Hockin
f11ba4a1b5 Switch git hooks to use pre-commit 2015-05-13 12:50:25 -07:00