Skip to content

Compare the canonical binary path when updating, and report installed… - #58

Merged
mohsen1 merged 1 commit into
prooflinedev:mainfrom
Elyahu41:fix/update-install-path-symlinks
Nov 17, 2026
Merged

mohsen1 merged 1 commit into
prooflinedev:mainfrom
Elyahu41:fix/update-install-path-symlinks

Conversation

@Elyahu41

@Elyahu41 Elyahu41 commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

… symlinks

install_path canonicalized the installer directory but compared it with current_exe() as given. That path is not canonical on every platform (macOS reports the path the binary was started through), so an installer directory reached through a symbolic link refused proofline update.

On Linux current_exe() already names a link's target, so the comparison failed before the symbolic-link check could run, and a package manager's link was reported as "outside the installer directory" instead.

Check for the link first, then compare the canonical executable path.

… symlinks

`install_path` canonicalized the installer directory but compared it with
`current_exe()` as given. That path is not canonical on every platform
(macOS reports the path the binary was started through), so an installer
directory reached through a symbolic link refused `proofline update`.

On Linux `current_exe()` already names a link's target, so the comparison
failed before the symbolic-link check could run, and a package manager's
link was reported as "outside the installer directory" instead.

Check for the link first, then compare the canonical executable path.

@mohsen1 mohsen1 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.

Codex

Reviewed the canonical-path update fix and symlink refusal behavior. Required check and windows jobs passed on this head.

@mohsen1
mohsen1 merged commit c15c69a into prooflinedev:main Nov 17, 2026
2 checks passed
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