Skip to content

Commit

Permalink
fix parent environment inherit (#3488)
Browse files Browse the repository at this point in the history
  • Loading branch information
gcampbell-msft authored Dec 14, 2023
1 parent efa3840 commit 6876476
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/preset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1031,7 +1031,7 @@ async function expandConfigurePresetHelper(folder: string, preset: ConfigurePres
const parent = await expandConfigurePresetImpl(folder, parentName, workspaceFolder, sourceDir, allowUserPreset);
if (parent) {
// Inherit environment
inheritedEnv = EnvironmentUtils.mergePreserveNull([parent.environment, inheritedEnv]);
inheritedEnv = EnvironmentUtils.mergePreserveNull([inheritedEnv, parent.environment]);
// Inherit cache vars
for (const name in parent.cacheVariables) {
if (preset.cacheVariables[name] === undefined) {
Expand Down

0 comments on commit 6876476

Please sign in to comment.