-
Notifications
You must be signed in to change notification settings - Fork 131
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
fix: gitignoring glob behavior introduced in #1234 #1236
Conversation
opening this PR now so I can run against the windows CI container |
I was able to reproduce with wine actually, should have a fix soon |
@@ -49,7 +49,7 @@ gitignoreGlob base = | |||
( \line -> do | |||
let | |||
resolve a = Path.concat [ base, a ] | |||
pat a = resolve $ unpackPattern a | |||
pat a = withForwardSlashes $ resolve $ unpackPattern a |
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.
🫠
Path.concat ["foo\\bar", "**"] == "foo\\bar\\**"
\**
and /**
are very different.
|
||
Spec.it "is stacksafe" \p -> do | ||
hugeGitignore <- liftEffect $ intercalate "\n" <$> randomSample' 10000 (resize 4 $ genAlphaLowercaseString) |
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.
this would sometimes randomly generate left
which would fail the test 😁
@f-f this is ready! |
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.
Ah, amazing. Thank you ❤️
see #1235