Skip to content

Commit

Permalink
feat: create dest path in io.copy (#1619)
Browse files Browse the repository at this point in the history
Signed-off-by: Keming <kemingyang@tensorchord.ai>
  • Loading branch information
kemingy authored May 25, 2023
1 parent 7500fa2 commit 8a175ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/lang/ir/v0/system.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ func (g generalGraph) compileCopy(root llb.State) llb.State {
for _, c := range g.Copy {
result = result.File(llb.Copy(
llb.Local(flag.FlagBuildContext), c.Source, c.Destination,
&llb.CopyInfo{CreateDestPath: true},
llb.WithUIDGID(g.uid, g.gid)))
}
return result
Expand Down
1 change: 1 addition & 0 deletions pkg/lang/ir/v1/system.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ func (g generalGraph) compileCopy(root llb.State) llb.State {
for _, c := range g.Copy {
result = result.File(llb.Copy(
llb.Local(flag.FlagBuildContext), c.Source, c.Destination,
&llb.CopyInfo{CreateDestPath: true},
llb.WithUIDGID(g.uid, g.gid)))
}
return result
Expand Down

0 comments on commit 8a175ed

Please sign in to comment.