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

Make Setup.hs copy/install work when data-files uses **. #6127

Merged
merged 1 commit into from
Jul 3, 2019

Conversation

quasicomputational
Copy link
Contributor

Treating globs like filenames was always illegitimate, but this code
was broken further by the addition of recursive globs.

I had a look around for other dubious code along these lines, and it
looks like this site is the only problematic one.

Fixes #6125.


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!

Treating globs like filenames was always illegitimate, but this code
was broken further by the addition of recursive globs.

I had a look around for other dubious code along these lines, and it
looks like this site is the only problematic one.

Fixes haskell#6125.
@quasicomputational quasicomputational added this to the 3.0 milestone Jul 3, 2019
@quasicomputational
Copy link
Contributor Author

@23Skidoo: this isn't too late for 3.0, right? It's a pretty bad bug, since it's possible for the package author to never run these code paths before publishing and breaking users.

@23Skidoo
Copy link
Member

23Skidoo commented Jul 3, 2019

Hopefully we can squeeze this in 3.0.

@quasicomputational
Copy link
Contributor Author

OK - the failure is a time-out on one of the OSX builders, which are known to be flaky. Since this comes with a test and the fix is easy to eyeball-verify, I'll go ahead and merge to master. I'll leave the 3.0 merging up to you?

@quasicomputational quasicomputational merged commit 7fec503 into haskell:master Jul 3, 2019
phadej added a commit that referenced this pull request Jul 3, 2019
phadej added a commit that referenced this pull request Jul 3, 2019
23Skidoo pushed a commit that referenced this pull request Jul 18, 2019
Treating globs like filenames was always illegitimate, but this code
was broken further by the addition of recursive globs.

I had a look around for other dubious code along these lines, and it
looks like this site is the only problematic one.

Fixes #6125.

(cherry picked from commit 7fec503)
@23Skidoo
Copy link
Member

Cherry-picked to 3.0.

@andreasabel andreasabel added the re: globbing Concerning issues with globbing file patterns label Nov 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
re: globbing Concerning issues with globbing file patterns
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cabal install fails when ** wildcards are used
3 participants