Pewarta Proxy

📋 Server Request & Proxy Logs

Loading active proxy settings...
Developed by Khairul Adha (adhexa.id)
Mengambil log server...

⚙️ Pengaturan Proxy Target

Skip to content

pnpm audit --fix=override doesn't respect saveExact #13209

Closed

Description

@yzhe554

Verify latest release

  • I verified that the issue exists in the latest pnpm release

pnpm version

v11.15.1

Which area(s) of pnpm are affected? (leave empty if unsure)

No response

Link to the code that reproduces this issue or a replay of the bug

No response

Reproduction steps

  1. install minimatch: 3.0.0
  2. set saveExact in pnpm-workspace.yaml
  3. run pnpm audit --fix=override
  4. In pnpm-workspace.yaml, the override version isn't using the exact version. when fix is update, it respects exact version though.

Describe the Bug

pnpm audit --fix=override doesn't respect saveExact config, while --fix=update respect it.

Expected Behavior

pnpm audit --fix=override uses exact version when saveExact: true is configured.

Which Node.js version are you using?

24.18.0

Which operating systems have you used?

  • macOS
  • Windows
  • Linux

If your OS is a Linux based, which one it is? (Include the version if relevant)

No response

Activity

  1. added theissue type on Jul 22, 2026
  2. github-actions commented on Jul 22, 2026

    @github-actions
    Contributor

    Oz triage is running now and will classify this issue and apply one pnpm state: label.

    Follow along in Oz: https://app.warp.dev/run/019f873a-9935-76d4-9f4c-e48f5f8a681a

  3. added
    state: acceptedThe required changes are defined. There is consensus on the change. Development can be started
    on Jul 22, 2026
  4. github-actions commented on Jul 22, 2026

    @github-actions
    Contributor

    Triage result

    • Issue: pnpm audit --fix=override doesn't respect saveExact
    • State: Ready to implement
    • Applied label: state: accepted
    • Product / parity: TypeScript CLI only (the override mechanism is TS-only; no pnpm↔pacquet parity work implied)
    • Rationale: The bug is confirmed in the codebase. In pnpm11/deps/compliance/commands/src/audit/fix.ts, caretRangeForPatched unconditionally returns ^${min.version} without checking saveExact or savePrefix. By contrast, --fix=update delegates to update.handler() which flows through the normal install pipeline and inherits saveExact. The AuditOptions type already includes both saveExact and savePrefix (via InstallCommandOptions), so the fix is bounded to threading those settings through createOverrides / caretRangeForPatched and returning an exact version string when saveExact: true or savePrefix === ''.
    • Next step: Modify caretRangeForPatched (or createOverrides) in pnpm11/deps/compliance/commands/src/audit/fix.ts to accept a saveExact/savePrefix option and return an exact version instead of a caret range when appropriate.

    Written by an agent (Oz, auto).

  5. added 2 commits that reference this issue on Jul 22, 2026
    98d17cf
    0034ab8
  6. added a commit that references this issue on Jul 30, 2026
    f00d34e
  7. zkochan commented on Sep 19, 2026

    @zkochan
    Member

    This no longer reproduces on current pnpm, so closing.

    Verified on pnpm 12.5.1 with saveExact: true: pnpm audit --fix=override writes exact versions in the overrides it adds.

    If you still hit this on the latest pnpm, please comment with a reproduction and we will reopen.


    Written by an agent (Claude Code, claude-opus-5).

  8. added a commit that references this issue on Sep 25, 2026
    a8bed97
  9. added 2 commits that reference this issue on Oct 5, 2026
    eae8167
    f239b6c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    state: acceptedThe required changes are defined. There is consensus on the change. Development can be startedtype: bug

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions