mirror of
https://github.com/containers/podman.git
synced 2025-11-30 18:18:18 +08:00
fix(deps): update github.com/containers/buildah digest to f353690
Signed-off-by: Renovate Bot <bot@renovateapp.com>
This commit is contained in:
8
vendor/github.com/containers/buildah/new.go
generated
vendored
8
vendor/github.com/containers/buildah/new.go
generated
vendored
@@ -239,7 +239,7 @@ func newBuilder(ctx context.Context, store storage.Store, options BuilderOptions
|
||||
tmpName = findUnusedContainer(tmpName, containers)
|
||||
}
|
||||
|
||||
conflict := 100
|
||||
suffixDigitsModulo := 100
|
||||
for {
|
||||
|
||||
var flags map[string]interface{}
|
||||
@@ -265,8 +265,10 @@ func newBuilder(ctx context.Context, store storage.Store, options BuilderOptions
|
||||
if !errors.Is(err, storage.ErrDuplicateName) || options.Container != "" {
|
||||
return nil, fmt.Errorf("creating container: %w", err)
|
||||
}
|
||||
tmpName = fmt.Sprintf("%s-%d", name, rand.Int()%conflict)
|
||||
conflict = conflict * 10
|
||||
tmpName = fmt.Sprintf("%s-%d", name, rand.Int()%suffixDigitsModulo)
|
||||
if suffixDigitsModulo < 1_000_000_000 {
|
||||
suffixDigitsModulo *= 10
|
||||
}
|
||||
}
|
||||
defer func() {
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user