You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
store: GenerateName: optimize check if name is taken
The function was using NodeGroupByName, which validated the name to
be in the correct format, but also if the information on disk was
correct, obtained the last activity date, etc.
Given that names generated should always match the correct format,
and we're only looking for _possible_ conflicts, we can simplify
the validation. The results of the generated name will still be
validated when used, as the Create function calls `NodeGroupByName`
as part of creating;
https://github.com/docker/buildx/blob/2d65b12a65ab5529c6eba55605a790580dad5f4b/builder/builder.go#L358-L387
Signed-off-by: Sebastiaan van Stijn <[email protected]>
0 commit comments