feat(daemon): scope describe to one workspace member; reuse executable path helper in tests
This commit is contained in:
1 parent
9f4477b8d4
commit
2b18a0331a
10 files changed
+66
-16
No files matched your search
@@ -89,9 +89,8 @@ void write_raw_tar(const std::filesystem::path &tar_path,
|
||||
|
||||
std::filesystem::path locate_vbs_binary() {
|
||||
std::error_code ec;
|
||||
if (const auto self = std::filesystem::read_symlink("/proc/self/exe", ec);
|
||||
!ec && !self.empty()) {
|
||||
const auto sibling = self.parent_path() / "vbs";
|
||||
if (const auto self_exe = Platform::current_executable_path(); self_exe) {
|
||||
const auto sibling = self_exe->parent_path() / "vbs";
|
||||
if (std::filesystem::exists(sibling, ec)) {
|
||||
return sibling;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user