-
Notifications
You must be signed in to change notification settings - Fork 701
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
Allow whitespace in target selectors #10032
Conversation
This PR allows whitespace to appear in paths, but does not also allow ':''s as discussed in the issue. I made an attempt to also allow ':''s, but it was failing on the Cabal-lib side, for reasons that were not completely clear to me, but probably related to search paths. |
I should add a test to cabal-tests also. |
Yes. Don't worry about the changelogs failure; that's a GitHub change we're still sorting out, they bumped the version of ghc included in their build images and some of the transitive dependencies of our tools aren't yet compatible with it. |
added a PackageTest |
I'm confused why the the test that failed on osx even ran. It looks like it should be marked skip? |
I'm coming late to this issue, so please bear with me. Why should the failing test be skipped on MacOS? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks for taking care of this!
I made a PR to properly skip the flaky tests that this PR has been hitting in CI: #10035 (they are supposed to be skipped, but skip is only called after the part that's flaky) |
question about merging: should I use |
squash seems more appropriate to me |
714acec
to
0ac648b
Compare
0ac648b
to
30c6138
Compare
rebased to pick up the test fixes |
Disallowing whitespace while parsing target selectors incorrectly disallows file targets with whitespace in the paths, which can issues when users pass absolute paths. fixes haskell#8875
30c6138
to
564b4fe
Compare
@mergify backport 3.12 |
✅ Backports have been created
|
Allow spaces in the final component of target selectors. This resolves an issue where using absolute paths in selectors can fail if there is whitespace in the parent directories of the project.
Fixes #8875