You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ nix -L build .#project.hsPkgs.accelerate-llvm.components.libraryaccelerate-llvm-lib-accelerate-llvm> Running phase: installPhaseaccelerate-llvm-lib-accelerate-llvm> LICENSE: copyFile: does not exist (No such file or directory)
Because accelerate-llvm/LICENSE is a symlink to a file outside the component's directory:
$ readlink accelerate-llvm/LICENSE ../LICENSE
Expected behavior
The installPhase succeeds by having access to the whole initial file hierarchy of the git repository.
Additional context
It's the same symptom as in #1134 but very likely unrelated, since the present regression was introduced just one month ago in #2239. Indeed, it worked correctly just before 61fbe40
Possible cause may be that in lib/load-cabal-plan.nix, src is no longer defined using a origSrc and origSubDir, that lib/clean-cabal-component.nix could use to know the component is a subdir:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Describe the bug
In
cabal.project
, it's no longer possible to use asource-repository-package
with asubdir
containing symlinks to its ancestor or sibling directories.2024.10.13
Steps To Reproduce
In a
cabal.project
:This fails in the
installPhase
:Because
accelerate-llvm/LICENSE
is a symlink to a file outside the component's directory:Expected behavior
The
installPhase
succeeds by having access to the whole initial file hierarchy of the git repository.Additional context
It's the same symptom as in #1134 but very likely unrelated, since the present regression was introduced just one month ago in #2239. Indeed, it worked correctly just before 61fbe40
Possible cause may be that in
lib/load-cabal-plan.nix
,src
is no longer defined using aorigSrc
andorigSubDir
, thatlib/clean-cabal-component.nix
could use to know the component is asubdir
:haskell.nix/lib/load-cabal-plan.nix
Lines 103 to 104 in 5de65a1
The text was updated successfully, but these errors were encountered: