Skip to content

Commit

Permalink
Fix Julia multiple pkg installation bug (#521)
Browse files Browse the repository at this point in the history
Signed-off-by: Aaron Sun <aaronzs@users.noreply.github.com>
  • Loading branch information
aaronzs committed Jun 28, 2022
1 parent 523fb40 commit 04e8444
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/lang/ir/julia.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@ func (g Graph) installJuliaPackages(root llb.State) llb.State {

var sb strings.Builder

sb.WriteString(`/usr/local/julia/bin/julia -e 'using Pkg; Pkg.add(`)
sb.WriteString(`/usr/local/julia/bin/julia -e 'using Pkg; Pkg.add([`)
for i, pkg := range g.JuliaPackages {
sb.WriteString(fmt.Sprintf(`"%s"`, pkg))
if i != len(g.JuliaPackages)-1 {
sb.WriteString(", ")
}
}

sb.WriteString(`)'`)
sb.WriteString(`])'`)

// TODO(gaocegege): Support cache.
cmd := sb.String()
Expand Down

0 comments on commit 04e8444

Please sign in to comment.