Skip to content

Commit 2b4823e

Browse files
committed
corepackk uuuuuuhg
1 parent 1e47bbb commit 2b4823e

4 files changed

Lines changed: 11 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 "echo PATH=$PATH && ls -l /Users/runner/.local/bin || true && 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 "echo PATH=$PATH && ls -l /Users/runner/.local/bin || true && 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: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,17 @@ shfmt.pkg-path = "shfmt"
2727
fi
2828
"$path" "$@"
2929
}
30-
# Ensure Yarn 4 shim wins over any host Yarn 1.x
30+
# Ensure Yarn 4 from the env wins over any host Yarn 1.x
3131
clean_path="$(printf '%s' "$PATH" | tr ':' '\n' | grep -v '/.yarn/bin' | paste -sd: -)"
3232
export COREPACK_HOME="$HOME/.local/share/corepack"
3333
mkdir -p "$HOME/.local/bin" "$COREPACK_HOME"
34-
export PATH="$HOME/.local/bin:$COREPACK_HOME:$clean_path"
34+
# Prefer the env-provided yarn binary explicitly if present.
35+
if command -v yarn >/dev/null 2>&1; then
36+
yarn_dir="$(dirname "$(command -v yarn)")"
37+
export PATH="$yarn_dir:$HOME/.local/bin:$COREPACK_HOME:$clean_path"
38+
else
39+
export PATH="$HOME/.local/bin:$COREPACK_HOME:$clean_path"
40+
fi
3541
if command -v corepack >/dev/null 2>&1; then
3642
corepack enable --install-directory "$HOME/.local/bin" >/dev/null 2>&1 || true
3743
corepack prepare "yarn@4.12.0" --activate --install-directory "$HOME/.local/bin" >/dev/null 2>&1 || true

0 commit comments

Comments
 (0)