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

Add trailing slash exclude paths #44330

Merged
merged 1 commit into from
Feb 21, 2025

Conversation

JimSuplizio
Copy link
Member

This PR is in preparation for an upcoming change that'll allow us to exclude specific files. Right now, we were always adding a trailing "/" if one wasn't there and this was done to ensure that things didn't overmatch. For example, if you had sdk/foo and sdk/foobar with an exclude of sdk/foo, without the slash, it would overmatch sdk/foo and sdk/foobar. We were adding the trailing the slash to ensure that this didn't happen. Because always have a need to exclude specific files, adding the trailing slash won't allow this case to work.

This is the first change and it's a safe. Adding the trailing slash allows the removal of where we were doing this in Language-Settings.ps1. Note: There's still a place in eng/common Package-Properties.ps1 where this also has to be done before specific file excludes can be added.

@JimSuplizio JimSuplizio added the EngSys This issue is impacting the engineering system. label Feb 21, 2025
@JimSuplizio JimSuplizio self-assigned this Feb 21, 2025
@JimSuplizio
Copy link
Member Author

I'm going to merge this without waiting for the FromSource runs to finish since they take forever and don't actually test anything specific to this change...just that they're running is enough.

@JimSuplizio JimSuplizio merged commit a3f741a into Azure:main Feb 21, 2025
61 of 66 checks passed
@JimSuplizio JimSuplizio deleted the AddTrailingSlashForExcludePaths branch February 21, 2025 19:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
EngSys This issue is impacting the engineering system.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants