Skip to content

Commit

Permalink
fix: install requested components plus deps
Browse files Browse the repository at this point in the history
- fix: add requested component to list of effective components
  installed via bindist

Fixes and closes #100. Thanks to
@mantasindrasius for reporting!

Relates-To: #100
Relates-To: #99
Signed-off-by: Sam Gammon <sam@elide.ventures>
  • Loading branch information
sgammon committed Sep 3, 2023
1 parent 0f5d42b commit 583c74b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions internal/graalvm_bindist.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -175,10 +175,13 @@ def _build_component_graph(components):
for component in components:
deps = ComponentDependencies.get(component, None)
if deps != None:
stanza = [i for i in (deps + [component]) if not sets.contains(unique_components, i)]
stanza = [i for i in deps if not sets.contains(unique_components, i)]
for item in stanza:
sets.insert(unique_components, item)
effective_components += stanza

# component itself + unique deps, with component last (reverse-topological)
effective_components += (stanza + [component])
sets.insert(unique_components, component)
else:
effective_components.append(component)
return effective_components
Expand Down

0 comments on commit 583c74b

Please sign in to comment.