Repository navigation
Conversation
Every package the tool compared stayed unpacked under $TMPDIR/differ, one folder per package and version, for good. Each run now unpacks and copies into $TMPDIR/assembly-differ/<run id>, and deletes it when it ends; ASSEMBLY_DIFFER_KEEP_SCRATCH keeps it for a look. Downloads still come from NuGet's global packages folder. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What the tool unpacks and copies to compare now goes into
$TMPDIR/assembly-differ/<run id>, which is deleted when the run ends. Downloads still go to NuGet's global packages folder, asdotnet restoredoes.Prompt summary: Comparisons should download into temporary scratch folders, not leave things behind. Caching package downloads is fine and in line with what users expect, so only the unpacked copies move.
Why
Each package the NuGet providers compared was unpacked under
$TMPDIR/differ/<provider>/<id>/<version>, and.nupkginputs under$TMPDIR/differ/nupkg. Nothing ever removed them, so every package and version a machine had compared stayed on disk.What
One folder per run
Scratch.Folderhands out folders under a run-specific root, which is created on first use.Programdeletes the root when the command returns, whatever it returns. The NuGet,.nupkgand deprecated GitHub providers all unpack there. SettingASSEMBLY_DIFFER_KEEP_SCRATCHkeeps the folder and prints where it is.Tests
ScratchTestsruns the tool withTMPDIRpointed at a folder of the test's own: after the run it is empty, and withASSEMBLY_DIFFER_KEEP_SCRATCHit holds the unpacked assembly. The report scrubber replaces run ids with{run}, so the one snapshot holding a path only changed its folder. After the whole suite, the shared temporary folder holds no scratch folder.Verify
🤖 Generated with Claude Code