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

Normalize globby paths #1865

Merged
merged 2 commits into from
Jun 22, 2022
Merged

Normalize globby paths #1865

merged 2 commits into from
Jun 22, 2022

Conversation

cristiano-belloni
Copy link
Contributor

@cristiano-belloni cristiano-belloni commented Jun 22, 2022

Problem: Globby correctly globs the paths, but it formats them according to the platform filesystem's separator, which means quoted backslashes on Windows. Since we compare them with .includes (string equality) to decide if we want to remove them, we actually end up blocklisting them all on Windows.

Fix: Normalising paths as soon as we get them from Globby fixes the issue.

@changeset-bot
Copy link

changeset-bot bot commented Jun 22, 2022

🦋 Changeset detected

Latest commit: a1b56d3

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
modular-scripts Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@coveralls
Copy link
Collaborator

coveralls commented Jun 22, 2022

Coverage Status

Coverage decreased (-0.008%) to 28.657% when pulling a1b56d3 on fix/templates-windows into f8ef4e7 on main.

@cristiano-belloni cristiano-belloni merged commit ad9a85c into main Jun 22, 2022
@cristiano-belloni cristiano-belloni deleted the fix/templates-windows branch June 22, 2022 15:47
@github-actions github-actions bot mentioned this pull request Jun 22, 2022
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.

3 participants