Skip to content

Commit

Permalink
yarn2nix: extend NixOS/nix#5128 workaround to 2.4+
Browse files Browse the repository at this point in the history
The issue was not fixed in later versions, so we need the workaround
for all versions greater than `2.4pre`.
  • Loading branch information
ncfavier authored and jsoo1 committed Aug 4, 2023
1 parent 6d46e95 commit cda72fe
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ function fetchgit(fileName, url, rev, branch, builtinFetchGit) {
url = "${url}";
ref = "${branch}";
rev = "${rev}";
} // (if builtins.substring 0 3 builtins.nixVersion == "2.4" then {
} // (if builtins.compareVersions "2.4pre" builtins.nixVersion < 0 then {
# workaround for https://github.com/NixOS/nix/issues/5128
allRefs = true;
} else {}));
` : `
Expand Down

0 comments on commit cda72fe

Please sign in to comment.