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 resolve_globs crash when at root directory #15988

Merged
merged 1 commit into from
Jan 29, 2025

Conversation

Xetera
Copy link
Contributor

@Xetera Xetera commented Jan 29, 2025

Fixes a crash found in Dockerfiles when a build takes place at the root directory. It's not a good practice to keep your application logic in /, but it probably shouldn't cause a crash either.

I found this particularly difficult to write tests for because it would involve either running a glob on my real filesystem starting from / or mocking the calls to fs which as far as I can tell isn't supported in the codebase and would be out of scope to try to do here.

Fixes #15987

@Xetera Xetera requested a review from a team as a code owner January 29, 2025 07:28
@RobinMalfait RobinMalfait self-assigned this Jan 29, 2025
@RobinMalfait RobinMalfait enabled auto-merge (squash) January 29, 2025 10:45
Copy link
Member

@RobinMalfait RobinMalfait left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch! Thank you very much

@RobinMalfait RobinMalfait merged commit 9bfeb33 into tailwindlabs:main Jan 29, 2025
5 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.

[v4] Tailwind fails to compile if there is no parent directory
2 participants