Skip to content

Commit

Permalink
Merge pull request devcontainers#169 from devcontainers/edgonmsft/fix…
Browse files Browse the repository at this point in the history
…-installsafter

Fix typo in 'installsAfter'
  • Loading branch information
edgonmsft authored Sep 9, 2022
2 parents 6278ab6 + 791fdf1 commit d256274
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/spec-configuration/containerFeaturesConfiguration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ export interface Feature {
capAdd?: string[];
securityOpt?: string[];
entrypoint?: string;
installAfter?: string[];
include?: string[];
exclude?: string[];
value: boolean | string | Record<string, boolean | string | undefined>; // set programmatically
Expand Down
2 changes: 1 addition & 1 deletion src/spec-configuration/containerFeaturesOrder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export function computeInstallationOrder(features: FeatureSet[]) {

const nodes = [...nodesById.values()];
for (const later of nodes) {
for (const firstId of later.feature.features[0].installAfter || []) {
for (const firstId of later.feature.features[0].installsAfter || []) {
const first = nodesById.get(firstId);
// soft dependencies
if (first) {
Expand Down
4 changes: 2 additions & 2 deletions src/test/container-features/containerFeaturesOrder.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ describe('Container features install order', function () {
}, { message: 'Feature node not found' });
});

function installAfter(id: string, ...installAfter: string[]): FeatureSet {
function installAfter(id: string, ...installsAfter: string[]): FeatureSet {
return {
sourceInformation: {
type: 'local-cache',
Expand All @@ -131,7 +131,7 @@ describe('Container features install order', function () {
features: [{
id,
name: id,
installAfter,
installsAfter,
value: true,
included: true,
}],
Expand Down

0 comments on commit d256274

Please sign in to comment.