Skip to content

Propagate file mode when re-packing through more archive kinds - #2491

Merged
jjonescz merged 6 commits into
dotnet:release/10.0.1xxfrom
jjonescz:apphost-toolset-pkg
Sep 20, 2025
Merged

jjonescz merged 6 commits into
dotnet:release/10.0.1xxfrom
jjonescz:apphost-toolset-pkg

Conversation

@jjonescz

@jjonescz jjonescz commented Sep 18, 2025 •

Copy link
Copy Markdown
Member

Fixes dotnet/sdk#50881.
Follow up on #2425.
Related to dotnet/roslyn#80151.
Official build validation run: https://dev.azure.com/dnceng/internal/_build/results?buildId=2797161&view=results

  • I've manually verified the .pkg artifact contains csc with +x mode, so this should fix the linked issue.

@jjonescz
jjonescz marked this pull request as ready for review September 19, 2025 13:10

@akoeplinger akoeplinger left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM but I'd like a second set of eyes from @mmitche

@jjonescz
jjonescz merged commit 314b801 into dotnet:release/10.0.1xx Sep 20, 2025
@dotnet-policy-service
dotnet-policy-service Bot requested a review from a team September 20, 2025 06:47
@jjonescz
jjonescz deleted the apphost-toolset-pkg branch September 20, 2025 08:56
@akoeplinger

Copy link
Copy Markdown
Member

@jjonescz I think this needs to be ported to main

@jjonescz

Copy link
Copy Markdown
Member Author

/backport to main

@github-actions

Copy link
Copy Markdown
Contributor

Started backporting to main (link to workflow run)

@github-actions

Copy link
Copy Markdown
Contributor

@jjonescz backporting to main failed, the patch most likely resulted in conflicts. Please backport manually!

git am output
$ git am --3way --empty=keep --ignore-whitespace --keep-non-patch changes.patch

Applying: Set unix file mode when extracting as well
Using index info to reconstruct a base tree...
M	src/arcade/src/Microsoft.DotNet.SignTool/src/Configuration.cs
M	src/arcade/src/Microsoft.DotNet.SignTool/src/ZipData.cs
Falling back to patching base and 3-way merge...
Auto-merging src/arcade/src/Microsoft.DotNet.SignTool/src/Configuration.cs
Auto-merging src/arcade/src/Microsoft.DotNet.SignTool/src/ZipData.cs
CONFLICT (content): Merge conflict in src/arcade/src/Microsoft.DotNet.SignTool/src/ZipData.cs
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
hint: When you have resolved this problem, run "git am --continue".
hint: If you prefer to skip this patch, run "git am --skip" instead.
hint: To restore the original branch and stop patching, run "git am --abort".
hint: Disable this message with "git config set advice.mergeConflict false"
Patch failed at 0001 Set unix file mode when extracting as well
Error: The process '/usr/bin/git' failed with exit code 128

Link to workflow output

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

5 participants