Skip to content

fix(#339): resolve symlinks#343

Merged
MordechaiHadad merged 3 commits into
MordechaiHadad:masterfrom
MrDwarf7:fix/resolve-syms
Nov 19, 2025
Merged

fix(#339): resolve symlinks#343
MordechaiHadad merged 3 commits into
MordechaiHadad:masterfrom
MrDwarf7:fix/resolve-syms

Conversation

@MrDwarf7

Copy link
Copy Markdown
Contributor

Summary

Closes: #339

Addresses issue where executable name resolution fails when symlinked wtih a name that is not nvim.

With this change a link from $HOME/.local/share/bob/nvim-bin/nvim to any name will still resolve as intended.

When the executable was run via a symlink, the previous method of extracting would only look at the output side of the symlink, leading to incorrect behavior.

Note:

Have yet to run it in a WSL environment (given the issue), and don't have a way to test MacOS and how it handles symlinks (apparently they can be a bit weird sometimes from my learning).

@MrDwarf7

Copy link
Copy Markdown
Contributor Author

@MordechaiHadad - Ready for review 👍

Added a sh/bash script that 
helps test the proxy binary.
Fairly configurable and has 
documentation/output where useful
Closes: MordechaiHadad#339

Addresses issue where executable name 
resolution fails when symlinked wtih a 
name that is not `nvim`.

With this change a link from
`$HOME/.local/share/bob/nvim-bin/nvim`
to any name will still resolve as intended.

When the executable was run via a symlink,
the previous method of
extracting would only look at the output 
side of the symlink, leading to incorrect 
behavior.
@MordechaiHadad

MordechaiHadad commented Nov 18, 2025

Copy link
Copy Markdown
Owner

Great solution, apologies for not merging this sooner I got caught up with life responsibilities.
I will try doing some of my own testing, hopefully this week and merge it.

It's time to t-t-t-test how symlinks work!

btw is this a yugioh reference? if so nice.

@MrDwarf7

Copy link
Copy Markdown
Contributor Author

@MordechaiHadad - Yeah it's a reference, because who doesn't like a bit of humor in their test suite tooling?
Regarding delays - I'll swing you an email during the week that may help address this.

@MordechaiHadad MordechaiHadad merged commit fedab35 into MordechaiHadad:master Nov 19, 2025
21 checks passed
@MrDwarf7 MrDwarf7 deleted the fix/resolve-syms branch November 20, 2025 17:16
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.

vim not found

2 participants