Skip to content

Fix licence tool include/excludes for Windows#8843

Merged
DanTup merged 1 commit intoflutter:masterfrom
DanTup:fix-licence-tests-on-windows
Feb 5, 2025
Merged

Fix licence tool include/excludes for Windows#8843
DanTup merged 1 commit intoflutter:masterfrom
DanTup:fix-licence-tests-on-windows

Conversation

@DanTup
Copy link
Contributor

@DanTup DanTup commented Feb 5, 2025

If the YAML file contains an exclusion using a forward slash then this condition would fail to match when running on Windows. This change uses path.isWithin() which handles the mismatched slashes automatically.

This fixes some test failures when running the licence tests on Windows.

CC @mossmana

If the YAML file contains an exclusion using a forward slash then this condition would fail to match when running on Windows. This change uses `path.isWithin()` which handles the mismatched slashes automatically.

This fixes some test failures when running the licence tests on Windows.
Copy link
Contributor

@mossmana mossmana left a comment

Choose a reason for hiding this comment

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

Thanks for catching this!

@DanTup DanTup merged commit 176f8a3 into flutter:master Feb 5, 2025
24 of 25 checks passed
@DanTup DanTup deleted the fix-licence-tests-on-windows branch February 5, 2025 16:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants