Skip to content

Commit 05c7dfb

Browse files
committed
shell: fix clojure shell when system has yarn v4
make run-clojure used to break when system had yarn v4 because yarn 1.22.22 would check for package.json in parent directories, setting SKIP_YARN_COREPACK_CHECK prevents that.
1 parent fc4f5a4 commit 05c7dfb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

nix/shell.nix

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ in mkShell {
3838
LANG="en_US.UTF-8";
3939
LANGUAGE="en_US.UTF-8";
4040

41+
# Prevent Yarn from checking packageManager field in parent directories
42+
# https://github.com/yarnpkg/yarn/blob/740c38c3a962c30ddb344a919bbfb7065620714b/src/cli/index.js#L292C21-L292C33
43+
SKIP_YARN_COREPACK_CHECK="1";
44+
4145
# Important to load our own Nix binary cache.
4246
NIX_CONFIG = builtins.readFile ./nix.conf;
4347

0 commit comments

Comments
 (0)