Repository navigation
Commit a3f56f7
* Start fix for #1514
Assisted-by: Claude Code:claude-opus-5-5
* Respect a pnpm trustLockfile env override
pnpm 11 and 12 read pnpm_config_trust_lockfile (or its uppercase
spelling) ahead of pnpm-workspace.yaml. With it set to false, a hosted
scan still wrote trustLockfile: true there and said installs need no
extra flags, so every install in that environment failed with
ERR_PNPM_TARBALL_URL_MISMATCH.
The scan now treats a non-true value of that variable as an explicit
user setting, like trustLockfile: false in the file: on a project whose
pnpm is 11 or newer (or unknown) it writes nothing and the trust warning
names the variable and the remedies (unset it or set it to true for
installs, or use --mode vendored). The in-memory engine sees no
environment and is unchanged.
Fixes #1514
Assisted-by: Claude Code:claude-opus-5-5
* Document the pnpm trustLockfile env override
Assisted-by: Claude Code:claude-opus-5-5
* Share pnpm major lookup; keep specific guidance
Review follow-ups for the trustLockfile env override:
- The trust check now reads the project's pnpm major through the same
helper as the lockfile setting (#1460) instead of a second copy, and
the env reader reuses the existing variable lookup.
- A project pinned to pnpm 9.0-10.4, or with a keyless workspace file
that lists members, keeps its more specific guidance; the override
only replaces the generic write.
- A workspace member scanned with the override set is no longer
refused with advice to add trustLockfile: true to the root file,
which the variable would override anyway; the scan pins the member
lock and its warning names the variable.
Assisted-by: Claude Code:claude-opus-5-5
---------
Co-authored-by: Claude <noreply@anthropic.com>
1 parent b633045 commit a3f56f7
7 files changed
Lines changed: 355 additions & 31 deletions
File tree
- crates
- socket-patch-cli
- src/commands/scan
- tests
- socket-patch-core/src
- hosted
- memory
- utils
- docs
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
160 | | - | |
| 160 | + | |
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
949 | 949 | | |
950 | 950 | | |
951 | 951 | | |
952 | | - | |
| 952 | + | |
| 953 | + | |
| 954 | + | |
| 955 | + | |
| 956 | + | |
| 957 | + | |
| 958 | + | |
| 959 | + | |
953 | 960 | | |
954 | 961 | | |
955 | 962 | | |
956 | | - | |
| 963 | + | |
957 | 964 | | |
958 | 965 | | |
959 | 966 | | |
| |||
1297 | 1304 | | |
1298 | 1305 | | |
1299 | 1306 | | |
| 1307 | + | |
| 1308 | + | |
| 1309 | + | |
1300 | 1310 | | |
1301 | 1311 | | |
1302 | 1312 | | |
| |||
1311 | 1321 | | |
1312 | 1322 | | |
1313 | 1323 | | |
| 1324 | + | |
1314 | 1325 | | |
1315 | 1326 | | |
1316 | 1327 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1350 | 1350 | | |
1351 | 1351 | | |
1352 | 1352 | | |
| 1353 | + | |
| 1354 | + | |
| 1355 | + | |
| 1356 | + | |
| 1357 | + | |
| 1358 | + | |
| 1359 | + | |
| 1360 | + | |
| 1361 | + | |
| 1362 | + | |
| 1363 | + | |
| 1364 | + | |
| 1365 | + | |
| 1366 | + | |
| 1367 | + | |
| 1368 | + | |
| 1369 | + | |
| 1370 | + | |
| 1371 | + | |
| 1372 | + | |
| 1373 | + | |
| 1374 | + | |
| 1375 | + | |
| 1376 | + | |
| 1377 | + | |
| 1378 | + | |
| 1379 | + | |
| 1380 | + | |
| 1381 | + | |
| 1382 | + | |
| 1383 | + | |
| 1384 | + | |
| 1385 | + | |
| 1386 | + | |
| 1387 | + | |
| 1388 | + | |
| 1389 | + | |
| 1390 | + | |
| 1391 | + | |
| 1392 | + | |
| 1393 | + | |
| 1394 | + | |
| 1395 | + | |
| 1396 | + | |
| 1397 | + | |
| 1398 | + | |
| 1399 | + | |
| 1400 | + | |
| 1401 | + | |
| 1402 | + | |
| 1403 | + | |
| 1404 | + | |
| 1405 | + | |
| 1406 | + | |
| 1407 | + | |
| 1408 | + | |
| 1409 | + | |
| 1410 | + | |
| 1411 | + | |
| 1412 | + | |
| 1413 | + | |
| 1414 | + | |
| 1415 | + | |
| 1416 | + | |
| 1417 | + | |
| 1418 | + | |
| 1419 | + | |
| 1420 | + | |
| 1421 | + | |
| 1422 | + | |
| 1423 | + | |
| 1424 | + | |
| 1425 | + | |
| 1426 | + | |
| 1427 | + | |
| 1428 | + | |
| 1429 | + | |
| 1430 | + | |
1353 | 1431 | | |
1354 | 1432 | | |
1355 | 1433 | | |
| |||
0 commit comments