-
Notifications
You must be signed in to change notification settings - Fork 684
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
checkPackageFiles does not work for subdirs in Cabal 2.2 #5206
Comments
Can this also be reproduced w/o Stack? If so I'd appreciate repro instructions in that spirit. |
Yes, it's reproducible with just |
snoyberg
added a commit
that referenced
this issue
Mar 13, 2018
4 tasks
wow... that one went undetected for a very long time... |
snoyberg
added a commit
that referenced
this issue
Mar 14, 2018
23Skidoo
added a commit
that referenced
this issue
Mar 27, 2018
Add missing relative for getFileContents #5206
23Skidoo
pushed a commit
that referenced
this issue
Mar 27, 2018
(cherry picked from commit a6c69f2)
This was fixed by #5208, both in |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I believe this is a regression between Cabal 2.0 and 2.2. I discovered this when using a
stack
built against Cabal 2.2. When running the commandstack sdist ./some-subdir
, I got an error message about the cabal file not existing in the local directory. You can see the original report at commercialhaskell/stack#3919.Repro I'm including Stack script headers to make it easier to test against both Cabal 2.0 (shipped with GHC 8.2.2) and Cabal 2.2 (shipped with GHC 8.4.1), but testing directly with GHC will produce the same result. Working code for GHC 8.2.2:
Runs with:
Tweaked slightly to use GHC 8.4.1 instead:
Results in:
However, running the script from inside the directory works fine:
Personally, I'd rate this as a blocker for the cabal-install 2.2 release, but perhaps the codepaths work differently there than I'm expecting.
The text was updated successfully, but these errors were encountered: