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
Describe the bug
Multiple license files are allowed in a cabal package description, but their relative paths are not preserved when installing.
Therefore, if the same file name is used in different directories, then only the last entry will be kept.
To Reproduce
Steps to reproduce the behavior:
Consider any .cabal file with an entry:
license-files: LICENSE somedir/LICENSE
Then, install this project
$ cabal install ...
In the directory ~/.cabal/store/ghc-x.y.z/<mingled_pkgname>/share/doc/, there will be only one LICENSE which is a copy of the last LICENSE.
Expected behavior
Their relative path should be kept.
In particular, takeFileName should be removed from L185 in
Describe the bug
Multiple license files are allowed in a cabal package description, but their relative paths are not preserved when installing.
Therefore, if the same file name is used in different directories, then only the last entry will be kept.
To Reproduce
Steps to reproduce the behavior:
.cabal
file with an entry:~/.cabal/store/ghc-x.y.z/<mingled_pkgname>/share/doc/
, there will be only oneLICENSE
which is a copy of the lastLICENSE
.Expected behavior
Their relative path should be kept.
In particular,
takeFileName
should be removed from L185 incabal/Cabal/src/Distribution/Simple/Install.hs
Lines 179 to 185 in f465da4
Additional context
I intend to fix this in #9172 as well.
The text was updated successfully, but these errors were encountered: