@@ -24,8 +24,8 @@ import (
24
24
)
25
25
26
26
const (
27
- tmpDirTemplate = "/tmp/build/%d "
28
- pkgDir = "/pkg"
27
+ tmpDir = "/tmp/build"
28
+ pkgDir = "/pkg"
29
29
)
30
30
31
31
func defaultCopyOptions (options * environment.Options , reproducible bool ) * llb.CopyInfo {
@@ -197,9 +197,9 @@ func (node *NodeLLB) dependencies(ctx context.Context, root llb.State) (llb.Stat
197
197
return root .WithOutput (llb .Merge (stages , llb .WithCustomName (node .Prefix + "copy" )).Output ()), nil
198
198
}
199
199
200
- func (node * NodeLLB ) stepTmpDir (root llb.State , i int , step * v1alpha2.Step ) llb.State {
200
+ func (node * NodeLLB ) stepTmpDir (root llb.State , step * v1alpha2.Step ) llb.State {
201
201
if step .TmpDir == "" {
202
- step .TmpDir = fmt . Sprintf ( tmpDirTemplate , i )
202
+ step .TmpDir = tmpDir
203
203
}
204
204
205
205
return root .File (
@@ -319,7 +319,7 @@ func (node *NodeLLB) stepScripts(root llb.State, i int, step v1alpha2.Step) llb.
319
319
}
320
320
321
321
func (node * NodeLLB ) step (root llb.State , i int , step v1alpha2.Step ) llb.State {
322
- root = node .stepTmpDir (root , i , & step )
322
+ root = node .stepTmpDir (root , & step )
323
323
root = node .stepDownload (root , step )
324
324
root = node .stepEnvironment (root , step )
325
325
root = node .stepScripts (root , i , step )
0 commit comments