Skip to content

Commit 1ef284f

Browse files
committed
remove corepack
1 parent 04f340e commit 1ef284f

2 files changed

Lines changed: 4 additions & 10 deletions

File tree

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: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,9 @@ shfmt.pkg-path = "shfmt"
2727
fi
2828
"$path" "$@"
2929
}
30-
if command -v corepack >/dev/null 2>&1; then
31-
mkdir -p "$HOME/.local/bin"
32-
# Remove any host Yarn shim ahead of ours to ensure yarn@4 wins.
33-
clean_path="$(printf '%s' "$PATH" | tr ':' '\n' | grep -v '/.yarn/bin' | paste -sd: -)"
34-
export PATH="$HOME/.local/bin:${clean_path}"
35-
corepack enable --install-directory "$HOME/.local/bin" >/dev/null 2>&1 || true
36-
corepack prepare "yarn@4.12.0" --activate --install-directory "$HOME/.local/bin" >/dev/null 2>&1 || true
37-
hash -r
38-
fi
30+
# Remove any host Yarn shim ahead of ours so the env's Yarn wins.
31+
clean_path="$(printf '%s' "$PATH" | tr ':' '\n' | grep -v '/.yarn/bin' | paste -sd: -)"
32+
export PATH="$clean_path"
3933
'''
4034

4135

0 commit comments

Comments
 (0)