GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||
GeezerVison is showing github.com — bake: various fixes for composable attributes by jsternberg · Pull Request #2814 · docker/buildx Conversation
|
|
rebased to fix xx issue |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Tested on my side on various projects and looks great!
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
| Equal(other E) bool | ||
| } | ||
|
|
||
| func removeDupes[E comparable[E]](s []E) []E { |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
This seems to be duplicated. Additionally (not for this PR) there is also removeDupesStr but it uses map. I think this could also avoid N^2 complexity but not sure if worth it as the inputs are likely small.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
The purpose of this was it could utilize the Equal method that was added so it wasn't so dependent on strings. Due to the small number of inputs, the N^2 complexity isn't likely to be an issue. This might actually be faster than removeDupesStr just because maps have some issues when used for deduplicating small inputs due to overhead from memory allocation and hash key lookups.
This was duplicated and I've removed the duplicate from bake/bake.go. When I originally did this, it was in bake/bake.go and then I started moving stuff. It was easier to just copy it at the time. Since I missed the change to call Normalize() for t.SSH as pointed out in the other comment, the linter didn't catch that the original call was no longer needed since all calls had been moved to this file. I've changed that to use Normalize() and removed the duplicate.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
bb1f448 to
15d291c
Compare
This changes how the composable attributes are implemented and provides various fixes to the first iteration. Cache-from and cache-to now no longer print sensitive values that are automatically added. These automatically added attributes are added when the protobuf is created rather than at the time of parsing so they will no longer be printed. If they are part of the original configuration file, they will still be printed. Empty strings will now be skipped. This was the original behavior and composable attributes removed this functionality accidentally. This functionality is now restored. This also expands the available syntax that works with each of the composable attributes. It is now possible to interleave the csv syntax with the object syntax without any problems. The canonical form is still the object syntax and variables are resolved according to that syntax. Signed-off-by: Jonathan A. Sternberg <[email protected]>
15d291c to
5dd4ae0
Compare
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
Regression in handling of empty lists on command line [v0.19.0] bake: cache-to/cache-from attributes output credentials with --print [v0.19.0] bake: Unsuitable value: EOF
There was an error while loading. Please reload this page.