Skip to content

Filesystem case sensitivity check should not create Scratch dir - #7807

Merged
zivkan merged 1 commit into
devfrom
dev-zivkan-filesystem-case-detection
Oct 21, 2026
Merged

zivkan merged 1 commit into
devfrom
dev-zivkan-filesystem-case-detection

Conversation

@zivkan

@zivkan zivkan commented Oct 20, 2026

Copy link
Copy Markdown
Member

Bug

Fixes: refactor

Description

Calling NuGetEnvironment.GetFolderPath(NuGetFolderPath.Temp) causes NuGetEnvironment to create the NuGetScratch directory if it doesn't exist already. But in the context of checking for filesystem case sensitity, checking the temp directory in addition to the home directory and the current directory doesn't really help much.

PR Checklist

  • Meaningful title, helpful description and a linked NuGet/Home issue
  • Added tests NuGetEnvironment only creates the scratch directory if no NUGET_SCRATCH environment variable is set, but that means it's the same path as parallel tests, or other processes use, so we can't reliably validate that the directory doesn't exist. Plus it would be weird to write a test to validate a path that isn't used by the code under test doesn't exist.
  • Link to an issue or pull request to update docs if this PR changes settings, environment variables, new feature, etc.

@zivkan
zivkan requested a review from a team as a code owner October 20, 2026 01:05
@zivkan
zivkan requested review from jeffkl and kartheekp-ms October 20, 2026 01:05
@zivkan
zivkan force-pushed the dev-zivkan-filesystem-case-detection branch from 58a48ea to 47150bb Compare October 20, 2026 23:42
@zivkan
zivkan merged commit e112aa3 into dev Oct 21, 2026
18 checks passed
@zivkan
zivkan deleted the dev-zivkan-filesystem-case-detection branch October 21, 2026 02:54
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.

4 participants