-
Notifications
You must be signed in to change notification settings - Fork 711
cabal build interprets Extra-source-files relative to CWD #6334
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
Labels
Comments
my 5cents: Cabal (starting from
|
This is reproducible with current I'll bisect which commit causes this, if it's easy to fix, I'll try that, otherwise hopefully revert would help. |
My |
phadej
added a commit
that referenced
this issue
Nov 15, 2019
Add regression test, and resolve #6334
4 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
When using a
cabal.project
filecabal build
seems to interpret "Extra-source-files" relative to the current working directory.This has changed in
cabal-install-head-3.1+git20191103.2.129775a-6~18.04
(from hvr's ppa).cabal-install-3.0
did not have this problem.To Reproduce
Here is a minimal setup:
/tmp/test-cabal/cabal.project:
/tmp/test-cabal/somepackage/somepackage.cabal:
/tmp/test-cabal/somepackage/README.md:
Building
somepackage
from the toplevel dir fails because it can't find the README.md:But if I go into somepackage (where it's located)
Expected behavior
I expect locations in a
.cabal
file would be interpreted relative to the location of that.cabal
file.Additional context
Interestingly
cabal sdist
works fine:$ cd /tmp/cabal-test $ cabal-head v2-sdist somepackage Wrote tarball sdist to /tmp/test-cabal/dist-newstyle/sdist/somepackage-0.1.tar.gz $ tar taf dist-newstyle/sdist/somepackage-0.1.tar.gz somepackage-0.1/ somepackage-0.1/README.md somepackage-0.1/somepackage.cabal
The text was updated successfully, but these errors were encountered: