Skip to content

Commit

Permalink
Merged PR 744563: Do not declare yarn.lock as a static input in yarn SDK
Browse files Browse the repository at this point in the history
Some repos rewrite yarn.lock during the build and declaring it as a static input blocks the safe source rewrite feature.
  • Loading branch information
smera committed Oct 10, 2023
1 parent 165361b commit ffe7434
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion Public/Sdk/Public/JavaScript/yarn.dsc
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,6 @@ namespace Yarn {
{kind: "shared", directory: d`${arguments.repoRoot}`},
],
dependencies: [
f`${arguments.repoRoot}/yarn.lock`,
...setCacheResult.getOutputFiles(),
...additionalDependencies],
unsafe: unsafeArgs,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ Transformer.execute({
],
},
workingDirectory: d`./Out/src`,
dependencies: [f`./path/to/yarn`, f`./Out/src/yarn.lock`, f`./obj_test/k/w/6k5ykzrovlnle3hdbgx4lv7q/userprofile/.yarnrc`],
dependencies: [f`./path/to/yarn`, f`./obj_test/k/w/6k5ykzrovlnle3hdbgx4lv7q/userprofile/.yarnrc`],
implicitOutputs: [d`./Out/src`],
environmentVariables: [
{name: "APPDATA", isPassThrough: true},
Expand Down

0 comments on commit ffe7434

Please sign in to comment.