Skip to content

Commit

Permalink
fix safe warning
Browse files Browse the repository at this point in the history
  • Loading branch information
TeofilC committed Nov 6, 2024
1 parent 7783158 commit 125cc1c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/call-cabal-project-to-nix.nix
Original file line number Diff line number Diff line change
Expand Up @@ -268,9 +268,14 @@ let
sourceRepos = sourceReposBuild;
inherit (repoResult) repos extra-hackages;
makeFixedProjectFile = ''
HOME=$(mktemp -d)
cp -f ${evalPackages.writeText "cabal.project" sourceRepoFixedProjectFile} ./cabal.project
chmod +w -R ./cabal.project
'';
'' + pkgs.lib.strings.concatStrings (
map (f: ''
git config --global --add safe.directory ${f.location}/.git
'') sourceReposEval
);
# This will be used to replace refernces to the minimal git repos with just the index
# of the repo. The index will be used in lib/import-and-filter-project.nix to
# lookup the correct repository in `sourceReposBuild`. This avoids having
Expand Down

0 comments on commit 125cc1c

Please sign in to comment.