-
Notifications
You must be signed in to change notification settings - Fork 192
Switch to using buildkit with go caching #2731
Conversation
d362786
to
d11af77
Compare
Codecov Report
@@ Coverage Diff @@
## main #2731 +/- ##
==========================================
+ Coverage 44.91% 44.98% +0.06%
==========================================
Files 412 412
Lines 41733 41733
==========================================
+ Hits 18745 18774 +29
+ Misses 21262 21240 -22
+ Partials 1726 1719 -7
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
I just tried this on my Mac running rootless podman and it seems to be having permission issues creating the cache directory.
Has this got something to do with podman? |
Podman is not fully compatible with buildkit, but this feels like a tradeoff worth making? |
Makes the following changes: * Use buildkit with Docker caching for container builds This means single line changes do not cause `go mod download` to re-execute * Remove `-a` from go build options as the compiler produces reproducible builds already. Signed-off-by: Naadir Jeewa <jeewan@vmware.com>
b19047d
to
8a8d8bc
Compare
This has been rebased |
Testing it on one infra should be sufficient as a test. It will either explode or not. /test install-aws |
Verified build works in docker for mac
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR. LGTM. Lets merge once we get a passing signal from downstream CI.
/test install-vc7 |
Didn't get merged. Don't have bandwidth to rebase. |
have a WIP copy of this w/ the new dir structure ..... trying to test it now ! thanks Naadir #3972 |
What this PR does / why we need it
Makes the following changes:
go mod download
to re-execute-a
from go build options as the compiler produces reproducible builds already.Signed-off-by: Naadir Jeewa jeewan@vmware.com
Which issue(s) this PR fixes
Fixes #2730
Describe testing done for PR
Release note
PR Checklist
Additional information
Special notes for your reviewer