Fix SDK extraction failing on tarballs with symlinks (11.0.100-preview.2.26159.112)#326
Merged
agocke merged 1 commit intodn-vm:mainfrom Mar 16, 2026
Merged
Conversation
.NET 11 Preview 2+ SDK tarballs use symlink deduplication to reduce archive size. Zio's virtual filesystem cannot move symlinks, causing ExtractSdkToDir to fail with "Could not find file" errors. Resolve symlinks to regular files after tar extraction, before the Zio-based copy phase.
Merged
agocke
added a commit
that referenced
this pull request
Mar 16, 2026
## Summary Bump version to 1.1.2 for the next release. ## Changes since v1.1.1 ### Bug Fixes * Fix SDK extraction failing on tarballs with symlinks (.NET 11 Preview 2+) #326 ### Dependencies * Bump Azure.Security.KeyVault.Keys from 4.8.0 to 4.9.0 * Bump coverlet.collector from 6.0.4 to 8.0.0 * Bump xunit.v3 from 3.2.1 to 3.2.2 * Bump Microsoft.NET.Test.Sdk from 18.0.1 to 18.3.0 * Bump Serde from 0.10.0 to 0.10.2 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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.
Summary
.NET 11 Preview 2+ SDK tarballs use symlink deduplication to reduce archive size (~140 MB of duplicates on Linux x64). After
tarextraction, these symlinks causeExtractSdkToDirto fail because Zio's virtual filesystem cannot move symlinks.ResolveSymlinksthat replaces symlinks with copies of their target files after tar extraction, before the Zio-based copy phaseExtractSdkWithSymlinkstest that creates a tarball mimicking the .NET 11 deduplication layout and verifies extraction succeedsAssert.SkipWhen) and on filesystems without symlink support (Assert.Skip)Test plan
ExtractSdkWithSymlinkstest passesInstallTestspassdotnet formatclean