Skip to content

v12: reject --virtual-store-dir and a custom --hoist-pattern with --global #205

Closed
pnpm/pnpm
#17331

Description

@zkochan

pnpm 11 rejects these flags with --global (pnpm11/config/reader/src/getConfig/globalInstall.ts):

  • --virtual-store-dir: ERR_PNPM_CONFIG_CONFLICT_VIRTUAL_STORE_DIR_WITH_GLOBAL
  • a custom --hoist-pattern: ERR_PNPM_CONFIG_CONFLICT_HOIST_PATTERN_WITH_GLOBAL

pnpm 12 raises neither. --lockfile-dir is already rejected (pnpm/crates/cli/src/cli_args/lockfile_dir.rs), which is the place to model the other two on. Found while porting the global virtual store default for global installs (pnpm/pnpm#17326).


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

Activity

  1. zkochan commented on Oct 25, 2026

    @zkochan
    MemberAuthor

    pnpm/pnpm#17331 implements this in pnpm v12. It also covers the other conflicts in globalInstall.ts: --link-workspace-packages, --shared-workspace-lockfile, and the --config.lockfile-dir spelling. Only command-line values trigger the check, as in v11.


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

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions