Breaking change docs: TarWriter now emits HardLink entries for hard-linked files (.NET 11)#52854
Open
Breaking change docs: TarWriter now emits HardLink entries for hard-linked files (.NET 11)#52854
Conversation
…-linked files Fixes #52683 Co-authored-by: gewarren <[email protected]>
Agent-Logs-Url: https://github.com/dotnet/docs/sessions/1a965af5-8df4-4072-a179-4d952413f887 Co-authored-by: gewarren <[email protected]>
Copilot
AI
changed the title
[WIP] Update TarWriter to use hard link entries for same inode files
Breaking change docs: TarWriter now emits HardLink entries for hard-linked files (.NET 11)
Apr 3, 2026
gewarren
approved these changes
Apr 3, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a new .NET 11 breaking-change article documenting updated System.Formats.Tar.TarWriter behavior for hard-linked files (subsequent entries become HardLink entries instead of duplicating contents), and wires the article into the compatibility navigation and index.
Changes:
- Adds a new breaking change article for
TarWriterhard-link handling in .NET 11 Preview 3. - Updates
docs/core/compatibility/toc.ymlto include the new article under .NET 11 Core .NET libraries. - Updates
docs/core/compatibility/11.mdto list the new breaking change in the Core .NET libraries table.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| docs/core/compatibility/toc.yml | Adds the new breaking change article to the .NET 11 Core .NET libraries TOC. |
| docs/core/compatibility/core-libraries/11/tarwriter-hardlink-entries.md | New breaking change article describing the TarWriter hard-link entry behavior and mitigation option. |
| docs/core/compatibility/11.md | Adds the new breaking change entry to the .NET 11 index table. |
docs/core/compatibility/core-libraries/11/tarwriter-hardlink-entries.md
Outdated
Show resolved
Hide resolved
docs/core/compatibility/core-libraries/11/tarwriter-hardlink-entries.md
Outdated
Show resolved
Hide resolved
BillWagner
approved these changes
Apr 6, 2026
Member
BillWagner
left a comment
There was a problem hiding this comment.
This LGTM. I have one question for you to consider.
rzikm
approved these changes
Apr 7, 2026
docs/core/compatibility/core-libraries/11/tarwriter-hardlink-entries.md
Outdated
Show resolved
Hide resolved
gewarren
reviewed
Apr 7, 2026
docs/core/compatibility/core-libraries/11/tarwriter-hardlink-entries.md
Outdated
Show resolved
Hide resolved
gewarren
reviewed
Apr 7, 2026
docs/core/compatibility/core-libraries/11/tarwriter-hardlink-entries.md
Outdated
Show resolved
Hide resolved
gewarren
reviewed
Apr 7, 2026
docs/core/compatibility/core-libraries/11/tarwriter-hardlink-entries.md
Outdated
Show resolved
Hide resolved
Co-authored-by: Radek Zikmund <[email protected]> Co-authored-by: Copilot <[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.
Documents the .NET 11 Preview 3 behavioral change where
TarWriterwritesHardLinkentries for files sharing the same inode instead of duplicating content—aligning with GNU tar behavior.Changes
docs/core/compatibility/core-libraries/11/tarwriter-hardlink-entries.md— covers previous/new behavior, reason for change, and migration pathtoc.yml) — new entry under .NET 11 Core .NET libraries11.md) — new row in Core .NET libraries tableKey migration guidance
If content duplication is required, use the new
TarWriterOptions.HardLinkMode:Also notes that extracting
HardLinkentries on file systems without hard link support throwsIOException, and that .NET 11's newTarExtractOptionscan be used to control extraction behavior.Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
https://api.github.com/graphql/usr/bin/gh gh auth status(http block)Changes:
docs/core/compatibility/core-libraries/11/tarwriter --noprofile(http block)Internal previews