ghc-pkg register should reject relative paths
Consider this output from ghc-pkg describe
library-dirs: /home/me/.cabal/lib/abc-0.1/ghc-6.12.1 abc
This relative path is never going to work. It slips past the checks that ghc-pkg register
does because when ghc-pkg
is invoked, the current directory does indeed have a local abc
directory.
The solution is that ghc-pkg
should reject such relative paths. It makes no sense.
Note that a related relative path concept that does make sense is ticket #3268 (closed).
Trac metadata
Trac field | Value |
---|---|
Version | 6.12.3 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |