Skip to content

Actually resolve symlink when loading bundle Info.plist.#864

Merged
jglogan merged 2 commits intoapple:mainfrom
jglogan:bundleinfo-resolvesymlink
Nov 10, 2025
Merged

Actually resolve symlink when loading bundle Info.plist.#864
jglogan merged 2 commits intoapple:mainfrom
jglogan:bundleinfo-resolvesymlink

Conversation

@jglogan
Copy link
Contributor

@jglogan jglogan commented Nov 10, 2025

  • Fix Info.plist system properties for symlinked container. #859 added the traversal necessary to load the app bundle but forgot to resolve symlinks. This fix adds the resolution, making it possible to get default system properties from an app bundle Info.plist even if the user invokes a command from, for example, /usr/local/bin/container which is a symlink to the actual install path of the bundle.
  • Also fixes bugs where an incorrect executable path was supplied in some calls.
  • Breaking change: CommandLine.executablePathUrl extension moved from ContainerPlugin to ContainerVersion.

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update

Testing

  • Tested locally
  • Added/updated tests
  • Added/updated docs

- apple#859 added the traversal necessary to load the app
  bundle but forgot to resolve symlinks. This fix adds
  the resolution, making it possible to get default
  system properties from an app bundle Info.plist even
  if the user invokes a command from, for example,
  `/usr/local/bin/container` which is a symlink to the
  actual install path of the bundle.
- Relocates the executable path API to ContainerVersion.
@jglogan jglogan merged commit 936c916 into apple:main Nov 10, 2025
2 checks passed
@jglogan jglogan deleted the bundleinfo-resolvesymlink branch November 10, 2025 20:00
saehejkang pushed a commit to saehejkang/container that referenced this pull request Jan 27, 2026
- apple#859 added the traversal necessary to load the app bundle but forgot
to resolve symlinks. This fix adds the resolution, making it possible to
get default system properties from an app bundle Info.plist even if the
user invokes a command from, for example, `/usr/local/bin/container`
which is a symlink to the actual install path of the bundle.
- Also fixes bugs where an incorrect executable path was supplied in
some calls.
- Breaking change: `CommandLine.executablePathUrl` extension moved from
ContainerPlugin to ContainerVersion.
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.

2 participants

Comments