Skip to content

Commit

Permalink
fix: merge language packages to system packages (#1593)
Browse files Browse the repository at this point in the history
Signed-off-by: Keming <kemingyang@tensorchord.ai>
  • Loading branch information
kemingy committed May 8, 2023
1 parent 4f731b9 commit 5bfd0e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/lang/ir/v1/compile.go
Original file line number Diff line number Diff line change
Expand Up @@ -298,15 +298,15 @@ func (g *generalGraph) CompileLLB(uid, gid int) (llb.State, error) {
aptMirror = userGroup
}

systemPackages := g.compileSystemPackages(aptMirror)
lang, err := g.compileLanguage(aptMirror)
if err != nil {
return llb.State{}, errors.Wrap(err, "failed to compile language")
}
systemPackages := g.compileSystemPackages(aptMirror)
merge := llb.Merge([]llb.State{
base,
llb.Diff(base, lang, llb.WithCustomName("[internal] prepare language")),
llb.Diff(base, systemPackages, llb.WithCustomName("[internal] install system packages")),
llb.Diff(base, lang, llb.WithCustomName("[internal] prepare language")),
}, llb.WithCustomName("[internal] language environment and system packages"))
packages := g.compileLanguagePackages(merge)
if err != nil {
Expand Down

0 comments on commit 5bfd0e6

Please sign in to comment.