Skip to content
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

Don't break when data-dir is null. #5319

Merged
merged 1 commit into from
May 19, 2018

Conversation

quasicomputational
Copy link
Contributor

PR #5284 changed things around, and now matchDirFileGlob will break if
it's passed a null directory, which happens to be the default value
for data-dir. Its call sites have been fixed to check for this and to
substitute '.' for an empty path, which is the desired behaviour; in
addition, matchDirFileGlob itself will now warn about this if it's
detected, so that new broken call sites can't sneak in.

Fixes #5318.

Please include the following checklist in your PR:

  • Patches conform to the coding conventions.
  • Any changes that could be relevant to users have been recorded in the changelog.
  • The documentation has been updated, if necessary.
  • If the change is docs-only, [ci skip] is used to avoid triggering the build bots.

Please also shortly describe how you tested your change. Bonus points for added tests!

PR haskell#5284 changed things around, and now matchDirFileGlob will break if
it's passed a null directory, which happens to be the default value
for data-dir. Its call sites have been fixed to check for this and to
substitute '.' for an empty path, which is the desired behaviour; in
addition, matchDirFileGlob itself will now warn about this if it's
detected, so that new broken call sites can't sneak in.

Fixes haskell#5318.
@quasicomputational
Copy link
Contributor Author

The 7.10 build on Travis failing due to OOM is also happening on master, and seems to have started with 6597b13... which really shouldn't've changed anything. Most likely transient Travis flakiness, and definitely not due to this PR.

Copy link
Collaborator

@phadej phadej left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test-case seems reasonable. And I guess someone have used it locally already. Let's merge this.

@phadej
Copy link
Collaborator

phadej commented May 19, 2018

ok now there is

    No instance for (transformers-0.5.5.0:Control.Monad.IO.Class.MonadIO
                       (Control.Monad.Trans.Reader.ReaderT TestEnv IO))

I think I can fix that. Will do another PR for that.

@phadej phadej merged commit d0c3def into haskell:master May 19, 2018
phadej added a commit to phadej/cabal that referenced this pull request May 19, 2018
23Skidoo pushed a commit that referenced this pull request May 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Build of colour package is broken by #5284
2 participants