Skip to content

Commit

Permalink
fix: fix feature install order
Browse files Browse the repository at this point in the history
  • Loading branch information
aacebedo committed Apr 27, 2024
1 parent c3f49b7 commit 08af7e3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/devcontainer/feature/extend.go
Original file line number Diff line number Diff line change
Expand Up @@ -307,12 +307,12 @@ func computeAutomaticFeatureOrder(features []*config.FeatureSet) ([]*config.Feat
// build lookup map
lookup := map[string]*config.FeatureSet{}
for _, feature := range features {
lookup[feature.ConfigID] = feature
lookup[feature.Config.ID] = feature
}

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

// add an edge from feature to installAfterFeature
_, err = g.InsertNodeAt(feature.ConfigID, installAfter, installAfterFeature)
_, err = g.InsertNodeAt(feature.Config.ID, installAfter, installAfterFeature)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 08af7e3

Please sign in to comment.