Commit 64e7520
committed
fix(deploy): drop
The Setup Yarn2 step hard-coded `yarn set version berry` before
`yarn install --immutable`. This forces the latest 4.x release and
overrides whatever `packageManager` field the consumer has pinned.
When a consumer is on an older yarn (e.g. 4.14.x with yarn.lock
metadata `version: 9`) and `berry` resolves to 4.16.0 (which uses
metadata `version: 10`), `yarn install --immutable` then refuses to
write the metadata bump and the workflow fails:
YN0028: │ - version: 9
YN0028: │ + version: 10
YN0028: │ The lockfile would have been modified by this install,
which is explicitly forbidden.
Causes a self-failure too: the self-tests on this repo use the
`samplePythonProject*` fixtures which pin `yarn@4.14.1` with v9
lockfiles. The PR-test job for #55 was failing for exactly this
reason — has nothing to do with the smoketest changes in the
parent commits.
Fix: drop the `yarn set version berry` line. Corepack already
respects the `packageManager` field in package.json, so consumers
keep their pin. Consumers can use any yarn 4.x (or upgrade to
yarn 5 in future) without needing to wait for a workflow update.
Applies to both `deploy-to-aws-uv.yml` and `deploy-to-aws.yml`.yarn set version berry from setup step1 parent 901f126 commit 64e7520
2 files changed
Lines changed: 12 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
140 | | - | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
141 | 146 | | |
142 | 147 | | |
143 | 148 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
144 | | - | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
145 | 150 | | |
146 | 151 | | |
147 | 152 | | |
| |||
0 commit comments