Skip to content

Commit

Permalink
bug: fix permission issue when pip install from git repo (#829)
Browse files Browse the repository at this point in the history
fix

Signed-off-by: Jinjing.Zhou <allenzhou@tensorchord.ai>

Signed-off-by: Jinjing.Zhou <allenzhou@tensorchord.ai>
  • Loading branch information
VoVAllen authored Aug 30, 2022
1 parent 7c854ac commit 36b1231
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/lang/ir/python.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ func (g Graph) compilePyPIPackages(root llb.State) llb.State {
logrus.WithField("command", cmd).
Debug("Configure pip install statements")
root = llb.User("envd")(root)
run := root.
run := root.Dir("/tmp").
Run(llb.Shlex(sb.String()), llb.WithCustomNamef("pip install %s",
strings.Join(g.PyPIPackages, " ")))
// Refer to https://github.com/moby/buildkit/blob/31054718bf775bf32d1376fe1f3611985f837584/frontend/dockerfile/dockerfile2llb/convert_runmount.go#L46
Expand Down

0 comments on commit 36b1231

Please sign in to comment.