Skip to content

Commit 6a8070a

Browse files
committed
test: limit Bun home cache workaround to Windows CI
1 parent 15cc57f commit 6a8070a

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

packages/tools/src/local-npm-registry.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -539,10 +539,11 @@ function buildRegistryEnv(registry: string): Record<string, string> {
539539
const noProxy = [process.env.NO_PROXY ?? process.env.no_proxy, '127.0.0.1']
540540
.filter(Boolean)
541541
.join(',');
542-
// Windows snapshot jobs put TEMP on a ReFS Dev Drive, where Bun's
542+
// Windows CI snapshot jobs put TEMP on a ReFS Dev Drive, where Bun's
543543
// cache/temp renames can fail with ENOTSUP. Keep its throwaway cache in
544544
// the user profile and its temporary files on the same filesystem.
545-
const bunCacheRoot = process.platform === 'win32' ? homedir() : tmpdir();
545+
const bunCacheRoot =
546+
process.platform === 'win32' && process.env.CI != null ? homedir() : tmpdir();
546547
const bunCacheDir = mkdtempSync(path.join(bunCacheRoot, 'vp-local-registry-bun-'));
547548
return {
548549
NPM_CONFIG_REGISTRY: registry,

0 commit comments

Comments
 (0)