Skip to content

Commit ffe7434

Browse files
committed
Merged PR 744563: Do not declare yarn.lock as a static input in yarn SDK
Some repos rewrite yarn.lock during the build and declaring it as a static input blocks the safe source rewrite feature.
1 parent 165361b commit ffe7434

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

Public/Sdk/Public/JavaScript/yarn.dsc

-1
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,6 @@ namespace Yarn {
160160
{kind: "shared", directory: d`${arguments.repoRoot}`},
161161
],
162162
dependencies: [
163-
f`${arguments.repoRoot}/yarn.lock`,
164163
...setCacheResult.getOutputFiles(),
165164
...additionalDependencies],
166165
unsafe: unsafeArgs,

Public/Sdk/UnitTests/JavaScript/Test.JavaScript/runYarnInstall.lkg

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ Transformer.execute({
7474
],
7575
},
7676
workingDirectory: d`./Out/src`,
77-
dependencies: [f`./path/to/yarn`, f`./Out/src/yarn.lock`, f`./obj_test/k/w/6k5ykzrovlnle3hdbgx4lv7q/userprofile/.yarnrc`],
77+
dependencies: [f`./path/to/yarn`, f`./obj_test/k/w/6k5ykzrovlnle3hdbgx4lv7q/userprofile/.yarnrc`],
7878
implicitOutputs: [d`./Out/src`],
7979
environmentVariables: [
8080
{name: "APPDATA", isPassThrough: true},

0 commit comments

Comments
 (0)