Skip to content

Commit 202c783

Browse files
committed
Use qualified name
1 parent 0e1019a commit 202c783

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/spec-configuration/containerFeaturesOrder.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export function computeInstallationOrder(features: FeatureSet[]) {
4848
feature,
4949
before: new Set(),
5050
after: new Set(),
51-
})).reduce((map, feature) => map.set(feature.feature.features[0].id, feature), new Map<string, FeatureNode>());
51+
})).reduce((map, feature) => map.set(feature.feature.features[0].name, feature), new Map<string, FeatureNode>());
5252

5353
const nodes = [...nodesById.values()];
5454
for (const later of nodes) {
@@ -87,19 +87,19 @@ export function computeInstallationOrder(features: FeatureSet[]) {
8787
}
8888
orderedFeatures.push(
8989
...current.map(node => node.feature)
90-
.sort((a, b) => a.features[0].id.localeCompare(b.features[0].id)) // stable order
90+
.sort((a, b) => a.features[0].name.localeCompare(b.features[0].name)) // stable order
9191
);
9292
current = next;
9393
}
9494

9595
orderedFeatures.push(
9696
...islands.map(node => node.feature)
97-
.sort((a, b) => a.features[0].id.localeCompare(b.features[0].id)) // stable order
97+
.sort((a, b) => a.features[0].name.localeCompare(b.features[0].name)) // stable order
9898
);
9999

100100
const missing = new Set(nodesById.keys());
101101
for (const feature of orderedFeatures) {
102-
missing.delete(feature.features[0].id);
102+
missing.delete(feature.features[0].name);
103103
}
104104

105105
if (missing.size !== 0) {

0 commit comments

Comments
 (0)