Skip to content

Commit

Permalink
fix start output usage
Browse files Browse the repository at this point in the history
  • Loading branch information
coffee-cup committed Jan 30, 2025
1 parent f795601 commit b92fbfa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions buildkit/convert.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ func getStartState(buildState llb.State, plan *p.BuildPlan, platform specs.Platf
startState = llb.Image(plan.Start.BaseImage, llb.Platform(platform)).Dir(WorkingDir)

// Copy over necessary files to the start image
for _, path := range plan.Start.Paths {
for _, path := range plan.Start.Outputs {
startState = startState.File(llb.Copy(mergedState, path, path, &llb.CopyInfo{
CreateDestPath: true,
FollowSymlinks: true,
Expand All @@ -93,7 +93,7 @@ func getStartState(buildState llb.State, plan *p.BuildPlan, platform specs.Platf
} else {
// If there is no custom start image, we will just copy over any additional files from the local context
src := llb.Local("context")
for _, path := range plan.Start.Paths {
for _, path := range plan.Start.Outputs {
startState = startState.Dir(WorkingDir).File(llb.Copy(src, path, path, &llb.CopyInfo{
CreateDestPath: true,
FollowSymlinks: true,
Expand Down

0 comments on commit b92fbfa

Please sign in to comment.