Regression: the subdir
of a source-repository-package
can no longer use symlinks to its ancestor or sibling directories
#2258
Labels
bug
Something isn't working
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: