-
Notifications
You must be signed in to change notification settings - Fork 645
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
Add no-cache functionality into Buildx. #1717
Conversation
Signed-off-by: Gary Graham <garygrantgraham@gmail.com>
Codecov Report
@@ Coverage Diff @@
## master #1717 +/- ##
=========================================
Coverage 65.11% 65.11%
- Complexity 2253 2254 +1
=========================================
Files 172 172
Lines 10109 10111 +2
Branches 1390 1391 +1
=========================================
+ Hits 6582 6584 +2
Misses 2977 2977
Partials 550 550
|
Thanks for the PR! It looks good to me, but as you said, we should move it to an utility method and maybe even consider to finally remove the @rohanKanojia since I'm quite disconnected from the codebase since quite some time, could you propose a proper location for a static method to this 'noCache' check ? |
Shall we try to move this method as a static method in |
I've migrated the method and renamed it a bit, hopefully that is alright. Let me know if there's anything else I can do. Cheers |
Shall we mention nocache functionality in buildx documentation as well? |
It's documented in the Also, I've added a changelog. |
SonarCloud Quality Gate failed.
|
Umm, that makes sense. As a user, I would expect existing option to work with buildx too |
Thanks much! Excited to get this merged :) |
Heya, I noticed that running a multiplatform build (which uses buildx) ignores the configured no-cache directive. e.g. this pom.xml
was not actually passing down
--no-cache
to the buildx command.This PR causes the top-level build option to be passed down to buildx if buildx happens to be used. Note that the check for no-cache is copy-pasted from your existing implementation. I didn't want to do guesswork about where utility classes should live. If you'd like me to move it, please let me know where to move it to. I would truly appreciate it if this could be merged and released, as I'm using a fork at my organization at the moment 😅
Cheers,
--Gary