Fix path resolution to dpd for MacOS#10098
Fix path resolution to dpd for MacOS#10098k-cross wants to merge 1 commit intooxidecomputer:mainfrom
Conversation
|
If I’m understanding the issue correctly, my workaround for this has been to add the directory to my path. It would certainly be nice not to have to do that. In theory, the .envrc also does this but I haven’t been able to get it to work. I’ll take a look at this. |
|
Actually this might explain why the |
|
I looked into why it's a symlink in the first place. Before #2904 (April 2023), the dendrite stub was unpacked so that The symlink I suspect the cleanest fix would be to remove the symlink altogether and update |
First of all, sorry if this is noise. I was trying to get a better understanding of
omicronand had trouble running it through the simulated environment. If there is a different process I should use for PRs, I'm willing to go through that too, but might need to be pointed to a doc I missed.On macOS,
std::env::current_exe()does not resolve symlinks.The dendrite-stub download creates a symlink:
out/dendrite-stub/bin->out/dendrite-stub/root/opt/oxide/dendrite/bin.../opt/oxide/dendrite/bin/dpd, but through the symlink it sees".../dendrite-stub/bin/dpdand fails.The real dpd path is resolved and then derive P4_DIR from it to bypass this.
I couldn't run the tests locally due to issues pointed out in docs already about trying this on MacOS. Thanks for your time!