Skip to content

Commit 848c8f5

Browse files
committed
chore: reproduce global cache issue
1 parent f1a5cec commit 848c8f5

File tree

13 files changed

+438
-160
lines changed

13 files changed

+438
-160
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,19 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- uses: actions/checkout@v4
17+
18+
- uses: actions/setup-node@v4
19+
with:
20+
node-version: lts/*
21+
22+
- name: Prepare fixtures
23+
run: |
24+
corepack enable
25+
cd fixtures/global-cache
26+
yarn install
27+
1728
- name: Build
1829
run: cargo build
30+
1931
- name: Run tests
2032
run: cargo test

Cargo.lock

Lines changed: 76 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ serde_with = { version = "3", features = ["indexmap_2"] }
2727
thiserror = "2"
2828

2929
[dev-dependencies]
30+
dirs = "6.0.0"
3031
rstest = "0.25.0"
3132

3233
[features]

fixtures/global-cache/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.yarn/*
2+
.pnp.*

fixtures/global-cache/.yarnrc.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
enableGlobalCache: true
2+
3+
nodeLinker: pnp

fixtures/global-cache/package.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"name": "global-cache",
3+
"dependencies": {
4+
"source-map-support": "^0.5.21"
5+
},
6+
"packageManager": "[email protected]"
7+
}

fixtures/global-cache/yarn.lock

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# This file is generated by running "yarn install" inside your project.
2+
# Manual changes might be lost - proceed with caution!
3+
4+
__metadata:
5+
version: 8
6+
cacheKey: 10c0
7+
8+
"buffer-from@npm:^1.0.0":
9+
version: 1.1.2
10+
resolution: "buffer-from@npm:1.1.2"
11+
checksum: 10c0/124fff9d66d691a86d3b062eff4663fe437a9d9ee4b47b1b9e97f5a5d14f6d5399345db80f796827be7c95e70a8e765dd404b7c3ff3b3324f98e9b0c8826cc34
12+
languageName: node
13+
linkType: hard
14+
15+
"global-cache@workspace:.":
16+
version: 0.0.0-use.local
17+
resolution: "global-cache@workspace:."
18+
dependencies:
19+
source-map-support: "npm:^0.5.21"
20+
languageName: unknown
21+
linkType: soft
22+
23+
"source-map-support@npm:^0.5.21":
24+
version: 0.5.21
25+
resolution: "source-map-support@npm:0.5.21"
26+
dependencies:
27+
buffer-from: "npm:^1.0.0"
28+
source-map: "npm:^0.6.0"
29+
checksum: 10c0/9ee09942f415e0f721d6daad3917ec1516af746a8120bba7bb56278707a37f1eb8642bde456e98454b8a885023af81a16e646869975f06afc1a711fb90484e7d
30+
languageName: node
31+
linkType: hard
32+
33+
"source-map@npm:^0.6.0":
34+
version: 0.6.1
35+
resolution: "source-map@npm:0.6.1"
36+
checksum: 10c0/ab55398007c5e5532957cb0beee2368529618ac0ab372d789806f5718123cc4367d57de3904b4e6a4170eb5a0b0f41373066d02ca0735a0c4d75c7d328d3e011
37+
languageName: node
38+
linkType: hard

0 commit comments

Comments
 (0)