Merge pull request #316422 from NixOS/backport-316084-to-release-24.05

[Backport release-24.05] julia.withPackages: fix compatibility with new git security features
This commit is contained in:
Nick Cao 2024-06-01 18:35:28 -04:00 committed by GitHub
commit b3b2b28c1d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -52,7 +52,10 @@ runCommand "julia-depot" {
# for finding the extra packages we need to add
python ${./python}/find_package_implications.py "${closureYaml}" '${lib.generators.toJSON {} packageImplications}' extra_package_names.txt
# git config --global --add safe.directory '/nix'
# Work around new git security features added in git 2.44.1
# See https://github.com/NixOS/nixpkgs/issues/315890
git config --global --add safe.directory '*'
export JULIA_PKG_USE_CLI_GIT="true"
# At time of writing, this appears to be the only way to turn precompiling's