Repository navigation
Use package root as data-file base path, not cwd - #4641
Merged
Merged
Conversation
Contributor
|
I fixed an upstream CI problem, if you try a rebuild that should help. |
fgaz
force-pushed
the
new-run/datafiles-2
branch
from
July 29, 2017 16:11
7c04d7a to
e54e8ff
Compare
Member
Author
Contributor
|
Looks like QuickCheck uncovered an unrelated bug ;) File an issue, will you? |
fgaz
force-pushed
the
new-run/datafiles-2
branch
from
August 6, 2017 16:26
e54e8ff to
6792ca1
Compare
Using the current directory worked with single packages, but cabal projects can use packages in different places. Fixes haskell#4639
With cabal projects a package might depend on another inplace package in the same project, so we need to add envoronment variables for each of them when using new-run.
hvr
reviewed
Aug 6, 2017
| -- already included in the package at install/build time). | ||
| -- * The other cases are not handled yet. See below. | ||
| dataDirEnvVarForPackage :: ElaboratedConfiguredPackage | ||
| -> Maybe (String, Maybe FilePath) |
Member
There was a problem hiding this comment.
The docstring refers to the outer Maybe, but what about the inner Maybe FilePath in the 2nd element?
Member
Author
There was a problem hiding this comment.
That's the format that runProgramInvocation accepts. See progInvokeEnv in Cabal/Distribution/Simple/Program/Run.hs.
The inner Maybe is for valueless vars I think.
Oddly, we don't have an alias for it.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Using the current directory worked with single packages, but cabal
projects can use packages in different places.
Fixes #4639
todo:
A meaningful error messageIt's a comment in a pure function that returns a Maybe now.