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

fix: gitignoring glob behavior introduced in #1234 #1236

Merged
merged 2 commits into from
Jun 24, 2024

Conversation

cakekindel
Copy link
Contributor

@cakekindel cakekindel commented Jun 24, 2024

see #1235

@cakekindel cakekindel changed the title fix: gitignoring glob tests fix: gitignoring glob behavior Jun 24, 2024
@cakekindel cakekindel changed the title fix: gitignoring glob behavior fix: gitignoring glob behavior introduced in #1234 Jun 24, 2024
@cakekindel
Copy link
Contributor Author

opening this PR now so I can run against the windows CI container

@cakekindel cakekindel changed the title fix: gitignoring glob behavior introduced in #1234 [WIP] fix: gitignoring glob behavior introduced in #1234 Jun 24, 2024
@cakekindel
Copy link
Contributor Author

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
Copy link
Contributor Author

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)
Copy link
Contributor Author

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 😁

@cakekindel cakekindel changed the title [WIP] fix: gitignoring glob behavior introduced in #1234 fix: gitignoring glob behavior introduced in #1234 Jun 24, 2024
@cakekindel
Copy link
Contributor Author

@f-f this is ready!

Copy link
Member

@f-f f-f left a 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 ❤️

@f-f f-f merged commit d401f1f into purescript:master Jun 24, 2024
3 checks passed
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.

2 participants