Skip to content

Revert "Deduplicate files using links in mac and linux installers" - #4800

Merged
MichaelSimons merged 1 commit into
dotnet:mainfrom
MichaelSimons:revert-symlink-copy-preserving
Feb 11, 2026
Merged

MichaelSimons merged 1 commit into
dotnet:mainfrom
MichaelSimons:revert-symlink-copy-preserving

Conversation

@MichaelSimons

Copy link
Copy Markdown
Member

This reverts SDK commit 1ef20e450e1b9b5e94ebc86dec1eb3080bd86713 which introduced CopyPreservingRelativeSymlinks to preserve symbolic links during installer layout copy operations for mac and linux. SignTool does not handle the symbolic links correctly. This was not caught in PR validation because we don't test sign linux/mac in PRs.

This reverts SDK commit 1ef20e450e1b9b5e94ebc86dec1eb3080bd86713 which
introduced CopyPreservingRelativeSymlinks to preserve symbolic links
during installer layout copy operations for mac and linux.
Copilot AI review requested due to automatic review settings February 11, 2026 19:18
@dotnet-policy-service
dotnet-policy-service Bot requested a review from a team February 11, 2026 19:18

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR reverts the introduction of CopyPreservingRelativeSymlinks in the SDK installer layout pipeline because the signing toolchain does not handle symbolic links correctly for macOS/Linux installers.

Changes:

  • Removes the CopyPreservingRelativeSymlinks MSBuild task and its unit tests.
  • Switches installer layout copy steps back to MSBuild’s built-in Copy task.
  • Simplifies SDK acquisition artifact lookup and removes E2E installer symlink verification tests (macOS + Linux).

Reviewed changes

Copilot reviewed 12 out of 12 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
src/sdk/test/sdk-tasks.Tests/MockBuildEngine.cs Removes standalone mock build engine helper (now inlined elsewhere).
src/sdk/test/sdk-tasks.Tests/DeduplicateAssembliesWithLinksTests.cs Inlines MockBuildEngine into the test file.
src/sdk/test/sdk-tasks.Tests/CopyPreservingRelativeSymlinksTests.cs Removes tests for the reverted task.
src/sdk/test/Microsoft.NET.TestFramework/SdkTestContext.cs Simplifies artifact discovery API (now requires exactly one match).
src/sdk/test/EndToEnd.Tests/Utilities/SymbolicLinkHelpers.cs Renames tar extraction helper and simplifies package symlink verification helper.
src/sdk/test/EndToEnd.Tests/GivenSdkArchives.cs Updates to use .tar.gz-specific extraction helper and adjusted skip behavior.
src/sdk/test/EndToEnd.Tests/GivenDotNetMacInstallers.cs Removes macOS installer symlink test.
src/sdk/test/EndToEnd.Tests/GivenDotNetLinuxInstallers.cs Removes Linux installer symlink tests; keeps dependency validation.
src/sdk/src/Tasks/sdk-tasks/sdk-tasks.InTree.targets Removes UsingTask entry for reverted task.
src/sdk/src/Tasks/sdk-tasks/CopyPreservingRelativeSymlinks.cs Removes the reverted task implementation.
src/sdk/src/Layout/redist/targets/GenerateInstallerLayout.targets Replaces symlink-preserving copy with MSBuild Copy for intermediate layout generation.
src/sdk/src/Layout/pkg/dotnet-sdk.proj Replaces symlink-preserving copy with MSBuild Copy for Linux package layout generation.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@MichaelSimons
MichaelSimons enabled auto-merge (squash) February 11, 2026 23:38
@MichaelSimons
MichaelSimons merged commit d5a0c5a into dotnet:main Feb 11, 2026
16 of 17 checks passed
@MichaelSimons
MichaelSimons deleted the revert-symlink-copy-preserving branch February 11, 2026 23:39
MichaelSimons added a commit to MichaelSimons/dotnet that referenced this pull request Feb 14, 2026
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.

3 participants