Skip to content

feat: allow enableGlobalVirtualStore in CI - #10691

Closed
VedantMadane wants to merge 1 commit into
pnpm:mainfrom
VedantMadane:feat/allow-global-virtual-store-in-ci
Closed

VedantMadane wants to merge 1 commit into
pnpm:mainfrom
VedantMadane:feat/allow-global-virtual-store-in-ci

Conversation

@VedantMadane

Copy link
Copy Markdown
Contributor

Description

This PR allows the use of \enableGlobalVirtualStore\ in CI environments. Previously, this feature was explicitly disabled when \ci\ was detected as true.

Why

Using a global virtual store in CI is beneficial when the store directory is cached across runs (e.g., using GitHub Actions cache). It avoids redundant link creation and speeds up builds.

Changes

  • Removed the block in \config/config/src/index.ts\ that forced \enableGlobalVirtualStore\ to false in CI.
  • Updated unit tests to remove \ci: false\ overrides that were previously necessary to test this feature.

Verification

Ran relevant unit tests:

  • \pnpm\test\install\globalVirtualStore.ts\
  • \pnpm\test\list.ts\
  • \store\plugin-commands-store\test\storePrune.ts
    All passed successfully.

Fixes #10681

@welcome

welcome Bot commented Feb 25, 2026

Copy link
Copy Markdown

💖 Thanks for opening this pull request! 💖
Please be patient and we will get back to you as soon as we can.

Remove restriction disabling global virtual store in CI.

Fixes pnpm#10681
@VedantMadane
VedantMadane force-pushed the feat/allow-global-virtual-store-in-ci branch from 5e78aaf to f3b7f15 Compare February 25, 2026 13:31
@zkochan

zkochan commented Feb 25, 2026

Copy link
Copy Markdown
Member

What if I do want to disable it in CI? How to achieve that?

@lionskape

Copy link
Copy Markdown

What if I do want to disable it in CI? How to achieve that?

Looks like you can just add --config.enableGlobalVirtualStore=false in CI?

@zkochan

zkochan commented Feb 25, 2026

Copy link
Copy Markdown
Member

tests failed

@zkochan

zkochan commented Mar 3, 2026

Copy link
Copy Markdown
Member

solved by this PR as tests passed there: #10836

@zkochan zkochan closed this Mar 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow to use enableGlobalVirtualStore in CI environments

4 participants