-
-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
muvm-guest: Find actual path for muvm-server before trying to execute it #112
Conversation
dbe38d3
to
fc03652
Compare
We should expect It's only coincidentally fixing the problem for you because you don't have So it doesn't actually help with using the dev version of the binaries, and is otherwise unnecessary in release with correct packaging. |
That's not really practical for development, right? I mean, every time I build I should do the equivalent of
What would help? |
PATH="$PWD/target/debug:$PATH" |
By the way, that's actually good enough for me. I don't have anything installed, and that way it runs from my current build directory. |
That looks rather dangerous. While POSIX doesn't really restrict the usage of
You might smile about it but... |
@sbrivio-rh I think there's some miscommunication there. I didn't mean to add that to |
But personally I wouldn't mind at all if we want to add something to search in the directory of |
I understand, but that's one more step (and I develop things in several different environments), plus somebody might be tempted to add it permanently because of the nuisance.
Right, I can give it a try... any hint as to where I should start? |
I think actually we could just change I haven't looked at the git blame, but I suspect the current behaviour is my mistake... Haha. |
Right, yes, that comes from the original implementation and commit 0cdc3e1 ("Rewrite it in Rust"). Any |
#[cfg(debug_assertions)] AFAICT there isn't any other that we could use. |
fc03652
to
3d59260
Compare
...and, for non-debug/non-development builds, source them from the PATH variable only. Signed-off-by: Stefano Brivio <[email protected]> Co-authored-by: Teoh Han Hui <[email protected]>
3d59260
to
e54f6ff
Compare
@sbrivio-rh PTAL |
Looks good to me! Testing in a moment... |
It works for me, thanks!
LGTM 🥬 ...or whatever you use. :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Otherwise this depends on where you run things from. In my case, I
would get:
Signed-off-by: Stefano Brivio [email protected]