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

Don't throw on lazy item updating unexpanded globs #9409

Merged
merged 3 commits into from
Nov 7, 2024

Conversation

rainersigwald
Copy link
Member

An Item Update operation may apply to items that are defined via
wildcard. In normal operation, the wildcard will have been expanded by
the time Update applies, and it's fine for Update to assume that
everything is a valid file path. But in
MSBuildSkipEagerWildCardEvaluationRegexes mode, wildcards may not be
expanded.

Fixes #9405 by using a more appropriate method to normalize
probably-but-not-necessarily paths for comparisons.

@rainersigwald rainersigwald marked this pull request as draft December 18, 2023 17:21
An Item `Update` operation may apply to items that are defined via
wildcard. In normal operation, the wildcard will have been expanded by
the time Update applies, and it's fine for Update to assume that
everything is a valid file path. But in
`MSBuildSkipEagerWildCardEvaluationRegexes` mode, wildcards may not be
expanded.

Fixes dotnet#9405 by using a more appropriate method to normalize
probably-but-not-necessarily paths for comparisons.
@rainersigwald rainersigwald force-pushed the glob-disable-updates-crash branch from 1eff9c2 to 98818e6 Compare November 7, 2024 20:03
@rainersigwald rainersigwald marked this pull request as ready for review November 7, 2024 20:16
@rainersigwald rainersigwald requested a review from a team November 7, 2024 20:16
@rainersigwald rainersigwald enabled auto-merge (squash) November 7, 2024 20:33
@rainersigwald rainersigwald merged commit ec950be into dotnet:main Nov 7, 2024
10 checks passed
@rainersigwald rainersigwald deleted the glob-disable-updates-crash branch November 7, 2024 20:41
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.

Static Graph RestoreEx: NuGet.Build.Tasks.Console.exe crash with wildcards and UNC paths
4 participants