Skip to content

Faster Makefile#3706

Merged
nkubala merged 7 commits intoGoogleContainerTools:masterfrom
dgageot:faster-make
Feb 20, 2020
Merged

Faster Makefile#3706
nkubala merged 7 commits intoGoogleContainerTools:masterfrom
dgageot:faster-make

Conversation

@dgageot
Copy link
Copy Markdown
Contributor

@dgageot dgageot commented Feb 20, 2020

This solves multiple slowness issues with the current Makefile:

  • Some variables are eagerly evaluated even if they are not used by the current target.
  • make generate-statik should make its inputs and outputs explicit so that we can avoid the cost of regenerating

The net result is that make and make install will be faster to find out that nothing needs to be rebuilt and will be faster to rebuild changes to the Go code.

cc @nkubala @tstromberg This should fix the issue you had with make

Signed-off-by: David Gageot <david@gageot.net>
This makes the Makefile faster for other targets.

Signed-off-by: David Gageot <david@gageot.net>
Signed-off-by: David Gageot <david@gageot.net>
@codecov
Copy link
Copy Markdown

codecov bot commented Feb 20, 2020

Codecov Report

Merging #3706 into master will decrease coverage by 0.01%.
The diff coverage is n/a.

Impacted Files Coverage Δ
...affold/kubernetes/portforward/kubectl_forwarder.go 65.85% <0%> (-2.44%) ⬇️

We don’t need a target to go build for every GOOS
since this done by `make cross`.

Signed-off-by: David Gageot <david@gageot.net>
At release time, we build in a Docker container
so the path is predictable.

Signed-off-by: David Gageot <david@gageot.net>
Signed-off-by: David Gageot <david@gageot.net>
Signed-off-by: David Gageot <david@gageot.net>
@nkubala nkubala merged commit 992bd44 into GoogleContainerTools:master Feb 20, 2020
@dgageot dgageot mentioned this pull request Feb 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants