Skip to content

Commit eb5e264

Browse files
authored
Merge pull request #183 from thedadams/load-builtins
fix: detect built-in tools when loading from assemble output
2 parents d78f5f4 + 60e2b31 commit eb5e264

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pkg/loader/loader.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,12 @@ func loadProgram(data []byte, into *types.Program, targetToolName string) (types
8787
return types.Tool{}, err
8888
}
8989

90+
into.ToolSet = make(map[string]types.Tool, len(ext.ToolSet))
9091
for k, v := range ext.ToolSet {
92+
if builtinTool, ok := builtin.Builtin(k); ok {
93+
v = builtinTool
94+
}
95+
9196
for tk, tv := range v.ToolMapping {
9297
v.ToolMapping[tk] = tv + id
9398
}

0 commit comments

Comments
 (0)