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

Theme Check: Issue of 0 files being inspected on Windows when using the CLI #322

Closed
wants to merge 1 commit into from

Conversation

justshrey
Copy link
Contributor

What are you adding in this PR?

Fixes Shopify/cli#3497

The main issue was that on windows, no liquid or json files were being selected despite '**/*.{liquid,json}' as the glob function.

this happens because in windows, the path separator output by path.join is '' which conflicts with the glob escape character.

To solve it, have normalized the path and just replaced '' with '/' . This should solve this since it wont have any impact on existing linux paths.

What's next? Any followup issues?

N/A -

What did you learn?

image

…windows machines due to '\' seperator being passed to glob.
@justshrey
Copy link
Contributor Author

I have signed the CLA!

@justshrey justshrey changed the title Fixed - Theme Check: Issue of 0 files being inspected. Theme Check: Issue of 0 files being inspected on Windows when using the CLI Mar 10, 2024
@charlespwd
Copy link
Contributor

You are amazing. This was on my TODO list but couldn't get around doing it with everything else on there. Thank you!

I'll add a changeset for a patch bump and see that this gets into the CLI ASAP.

🙏

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.

Theme check: command doesn't inspect any file after CLI upgrade
2 participants