Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Faster Makefile #3706

Merged
merged 7 commits into from
Feb 20, 2020
Merged

Faster Makefile #3706

merged 7 commits into from
Feb 20, 2020

Conversation

dgageot
Copy link
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

This makes the Makefile faster for other targets.

Signed-off-by: David Gageot <[email protected]>
@codecov
Copy link

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 <[email protected]>
At release time, we build in a Docker container
so the path is predictable.

Signed-off-by: David Gageot <[email protected]>
@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