Commit Graph

24 Commits (k3s-v1.15.3)

Author SHA1 Message Date
Mike Danese 4bf2ef646f move build related files out of the root directory 2017-05-15 15:53:54 -07:00
Joe Finney 3bc3e410b8 Remove verify_gen_openapi make rule. 2017-04-25 17:41:33 -07:00
Tim Hockin ca1918ad31 Remove a from each codegen path 2016-12-30 18:44:32 -08:00
Tim Hockin cb8cf1ab48 Allow builds outside of GOPATH to work
`go list` produces different results for vendored code when not under GOPATH.
2016-12-30 17:22:32 -08:00
Tim Hockin e93bbed8d9 Verify generated files 2016-11-01 22:10:25 -07:00
Eric Paris 9214f8ab4f Make all useage of sort deterministic
Lots of places used sort (or sort -u) but didn't set LC_ALL=C. This
means it could be slightly different on different people's systems. Make
it deterministic.
2016-10-20 16:47:20 -04:00
Clayton Coleman ca6fc3a68b
Update makefile to generate defaulters 2016-10-18 21:07:33 -04:00
Tim Hockin 2b937f6d6e Fix openapi Make rules to emit 1 file 2016-09-27 17:52:22 -07:00
Tim Hockin bd9c04cf5d Move openapi output to a flag rather than tag 2016-09-27 17:52:22 -07:00
Tim Hockin 21971e217d Log code generators to stderr 2016-09-26 20:07:54 -07:00
mbohlool 54fee8c253 Improvements on OpenAPI spec generation:
- Generating models using go2idl library (no reflection anymore)
- Remove dependencies on go-restful/swagger
- Generate one swagger.json file for each web-service
- Bugfix: fixed a bug in trie implementation
2016-09-12 18:47:03 -07:00
Tim Hockin af13e1d325 Error if someone uses the sub-makefile directly 2016-08-22 15:26:08 -07:00
Tim St. Clair 9abdf719b8
Add a verbosity concept to kubernetes scripts
The KUBE_VERBOSE environment variable sets the verbosity level to
use. Log messages can specify a verbosity by setting the V
variable. e.g.

    V=2 kube::log::info foo bar

Would only print "foo bar" if $KUBE_VERBOSE >= 2.
2016-08-04 22:01:22 -07:00
k8s-merge-robot 12cbe971ae Merge pull request #29105 from bboreham/go-list-error
Automatic merge from submit-queue

Remove -e from 'go list' so missing files will halt the build

In the case that any of the files being processed by this pipeline are missing, `go list -e` sends the error to the template, which results in cryptic build errors like `No rule to make target '/*.go'`

This came up in #28987, and although that issue has already been fixed by munging the specific path - 2a4495cf89 (diff-78183b4162626e1797dae5558b01caa0R423) - I suggest it would be best to take out the possibility of the same thing happening again for different reasons.
2016-08-02 02:28:37 -07:00
Tim Hockin 6659667469 Make builds faster by caching ALL_GO_DIRS
This operation takes 2-5 seconds on every build, but doesn't actually need to
run most of the time.  Now we cache it and see if it needs a rebuild (fast)
before actually rebuilding (slow).
2016-07-21 09:31:38 -07:00
Tim Hockin 5315fd6786 Make 'make clean' not depend on genfiles metadata
Previously even 'make clean' would first produce dependency information (slow)
and sinclude all the metadata, possibly restarting the make, before removing
the things it just did.

Now dependencies are only processed when something explicitly depends on them,
by calling 'make' on the rules around generated files, rather than sincluding
them.

Net result: make clean is faster and safer.  Additionally, bash tab-completion
for 'make' does not run the slow 'find' any more.
2016-07-21 09:31:33 -07:00
Tim Hockin ab703e0406 Make 'make clean all' work
In this case, the 'clean' step would nuke the metadata files, but they have
already been read, so in-memory state is fine.  This triggered a couple of
pathological conditions that would not normally be hit.  This commit fills in
those nodes in the DAG, even though they are not directly needed in most
builds.

Also fix some whitespace for readability.
2016-07-20 15:22:54 -07:00
Bryan Boreham 764b238a60 Remove -e from 'go list' so missing files will halt the build
'go list -e' sends the error to the template, which causes cryptic
build errors like "No rule to make target `/*.go'"
2016-07-18 10:50:21 +01:00
Davanum Srinivas 0cf59707bd Ignore GREP_OPTIONS/GREP_COLOR
On OSX - default BSD grep breaks gen_conversion. Let's just
make sure we use --color=never everywhere, so we don't trip
over GREP_OPTIONS/GREP_COLOR in a user environment.

Fixes #29013
2016-07-16 20:28:30 -04:00
k8s-merge-robot d7c17ca94c Merge pull request #29016 from thockin/fix-makefile-line-continuations
Automatic merge from submit-queue

Fix make to include line-continuations

This got broken in recent changes.  Sorry for the noise.
2016-07-15 13:00:09 -07:00
Tim Hockin 31badf0ab8 Fix make to include line-continuations 2016-07-15 10:19:58 -07:00
Tim Hockin 2a4495cf89 Allow make to run from outside GOPATH 2016-07-15 08:42:12 -07:00
Manuel de Brito Fontes d3d569315c Fix make on Mac replacing sed with tr 2016-07-14 21:01:45 -04:00
Tim Hockin 0fc46afda6 Move make logic for generated files into a helper
This makes it a little easier to look at the main Makefile without getting
overwhelmed by code-generation stuff.
2016-07-12 21:52:54 -07:00