Skip to content

Commit

Permalink
chore: skip starship prompt for customized image (#687)
Browse files Browse the repository at this point in the history
Signed-off-by: Keming <kemingyang@tensorchord.ai>
  • Loading branch information
kemingy committed Jul 29, 2022
1 parent 78cba5f commit df9bd6a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/lang/ir/shell.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ func (g *Graph) compileShell(root llb.State) (llb.State, error) {
}

func (g *Graph) compilePrompt(root llb.State) llb.State {
// skip this for customized image
if g.Image != nil {
return root
}
// starship config
config := root.
File(llb.Mkdir(defaultConfigDir, 0755, llb.WithParents(true)),
Expand Down

0 comments on commit df9bd6a

Please sign in to comment.