Skip to content

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
@Xetera Xetera deleted the fix-resolve-globs-crash branch February 6, 2025 19:31
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