Skip to content

Quote path arguments to pkgbuild and productbuild - #17540

Merged
akoeplinger merged 1 commit into
dotnet:mainfrom
ApparentlyPlus:spacepath-installers-pkgbuild
Sep 11, 2026
Merged

akoeplinger merged 1 commit into
dotnet:mainfrom
ApparentlyPlus:spacepath-installers-pkgbuild

Conversation

@ApparentlyPlus

Copy link
Copy Markdown
Contributor

Contributes to dotnet/runtime#73327.

CreatePkg and CreatePkgBundle assemble a flat argument string and hand it to Exec, so a path containing a space is split by the shell and pkgbuild receives a truncated --root. This quotes the path-valued arguments in both targets.

Verified on macos-arm64 by building dotnet/runtime from a path with a space. Without this the build fails at pkgbuild, with it the six installer packages are produced correctly.

To double check:

(Note that no test coverage exists for these targets)

Copilot AI lite review requested due to automatic review settings September 11, 2026 13:24

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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@akoeplinger
akoeplinger merged commit bf20fee into dotnet:main Sep 11, 2026
12 checks passed
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 12.0-preview1 milestone Sep 12, 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