Skip to content

Commit 08af7e3

Browse files
committed
fix: fix feature install order
1 parent c3f49b7 commit 08af7e3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pkg/devcontainer/feature/extend.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -307,12 +307,12 @@ func computeAutomaticFeatureOrder(features []*config.FeatureSet) ([]*config.Feat
307307
// build lookup map
308308
lookup := map[string]*config.FeatureSet{}
309309
for _, feature := range features {
310-
lookup[feature.ConfigID] = feature
310+
lookup[feature.Config.ID] = feature
311311
}
312312

313313
// build graph
314314
for _, feature := range features {
315-
_, err := g.InsertNodeAt("root", feature.ConfigID, feature)
315+
_, err := g.InsertNodeAt("root", feature.Config.ID, feature)
316316
if err != nil {
317317
return nil, err
318318
}
@@ -325,7 +325,7 @@ func computeAutomaticFeatureOrder(features []*config.FeatureSet) ([]*config.Feat
325325
}
326326

327327
// add an edge from feature to installAfterFeature
328-
_, err = g.InsertNodeAt(feature.ConfigID, installAfter, installAfterFeature)
328+
_, err = g.InsertNodeAt(feature.Config.ID, installAfter, installAfterFeature)
329329
if err != nil {
330330
return nil, err
331331
}

0 commit comments

Comments
 (0)