Skip to content

Commit f083c0c

Browse files
committed
fix lint.sh
1 parent 0aed289 commit f083c0c

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

compose/lint.sh

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,32 +8,38 @@ cd "$PROJECT_ROOT"
88
# Name of the pnpm store volume used as cache between runs
99
PNPM_STORE_VOLUME="pnpm-store"
1010
PNPM_COREPACK_CACHE_VOLUME="pnpm-corepack-cache"
11+
APK_CACHE_VOLUME="apk-cache"
1112

1213
docker run --rm \
1314
-e CI=1 \
1415
-v "$PROJECT_ROOT":/src:ro \
1516
-v "${PNPM_STORE_VOLUME}":/pnpm/store \
1617
-v "${PNPM_COREPACK_CACHE_VOLUME}":/root/.cache \
18+
-v "${APK_CACHE_VOLUME}":/var/cache/apk \
1719
node:24-alpine \
1820
sh -lc '
1921
set -euo pipefail
2022
21-
# 1) Create a throwaway working dir inside container
23+
apk add --no-cache git >/dev/null
24+
2225
APP_DIR="$(mktemp -d)"
23-
26+
2427
tar \
2528
--exclude="node_modules" \
2629
--exclude="*/node_modules" \
27-
--exclude=".git" \
2830
--exclude=".turbo" \
31+
--exclude=".git" \
2932
--exclude=".pnpm-store" \
3033
--exclude="dist" \
3134
--exclude="*/dist" \
3235
--exclude="coverage" \
3336
-C /src \
3437
-cf - . \
3538
| tar -C "$APP_DIR" -xf -
36-
39+
40+
rm -rf "$APP_DIR/.git"
41+
ln -s /src/.git "$APP_DIR/.git"
42+
3743
cd "$APP_DIR"
3844
3945
export PNPM_HOME=/pnpm

0 commit comments

Comments
 (0)