Skip to content

Commit 1e47bbb

Browse files
committed
corepackk uuuuuuhg
1 parent 1ef284f commit 1e47bbb

4 files changed

Lines changed: 12 additions & 5 deletions

File tree

.github/workflows/ci-e2e-nightly.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
uses: flox/install-flox-action@v2.2.0
5353
- name: Yarn debug (iOS env)
5454
run: |
55-
flox activate -d env/ios/latest -- bash -lc "which yarn && yarn --version && node -v && corepack --version"
55+
flox activate -d env/ios/latest -- bash -lc "echo PATH=$PATH && ls -l /Users/runner/.local/bin || true && which yarn && yarn --version && node -v && corepack --version"
5656
- name: iOS E2E Tests
5757
run: |
5858
flox activate -d env/ios/latest -- bash -lc "yarn e2e:ios"

.github/workflows/ci-e2e-optional.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
uses: flox/install-flox-action@v2.2.0
5858
- name: Yarn debug (iOS env)
5959
run: |
60-
flox activate -d env/ios/latest -- bash -lc "which yarn && yarn --version && node -v && corepack --version"
60+
flox activate -d env/ios/latest -- bash -lc "echo PATH=$PATH && ls -l /Users/runner/.local/bin || true && which yarn && yarn --version && node -v && corepack --version"
6161
- name: iOS E2E Tests
6262
run: |
6363
flox activate -d env/ios/latest -- bash -lc "yarn e2e:ios"

env/common/.flox/env/manifest.lock

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

env/common/.flox/env/manifest.toml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,16 @@ shfmt.pkg-path = "shfmt"
2727
fi
2828
"$path" "$@"
2929
}
30-
# Remove any host Yarn shim ahead of ours so the env's Yarn wins.
30+
# Ensure Yarn 4 shim wins over any host Yarn 1.x
3131
clean_path="$(printf '%s' "$PATH" | tr ':' '\n' | grep -v '/.yarn/bin' | paste -sd: -)"
32-
export PATH="$clean_path"
32+
export COREPACK_HOME="$HOME/.local/share/corepack"
33+
mkdir -p "$HOME/.local/bin" "$COREPACK_HOME"
34+
export PATH="$HOME/.local/bin:$COREPACK_HOME:$clean_path"
35+
if command -v corepack >/dev/null 2>&1; then
36+
corepack enable --install-directory "$HOME/.local/bin" >/dev/null 2>&1 || true
37+
corepack prepare "yarn@4.12.0" --activate --install-directory "$HOME/.local/bin" >/dev/null 2>&1 || true
38+
hash -r
39+
fi
3340
'''
3441

3542

0 commit comments

Comments
 (0)