Files
pnpm/.github/workflows
Langning Zhang 7e5783681a fix(cli): restore CI frozen lockfile default (#13782)
## Summary

- Restore the Rust CLI default that freezes an existing non-empty `pnpm-lock.yaml` in CI, so an outdated lockfile fails without being rewritten.
- Preserve explicit `frozenLockfile` and `preferFrozenLockfile` choices from CLI flags, trusted configuration, environment variables, and `.pnpmfile.cjs` hooks.
- Recognize `CI=1`, `CI=true`, and GitHub Actions; let explicit `CI=false` opt out, and prevent repository-controlled `pnpm-workspace.yaml` from overriding CI detection.
- Keep missing, byte-empty, and semantically empty lockfiles writable, and isolate CI-sensitive spawned commands in the Rust test workflow.

The TypeScript CLI already has this behavior; this brings the Rust `pnpm/` port back into parity.

Fixes pnpm/pnpm#13760.
2026-08-11 13:58:11 +02:00
..