Skip to content

Commit f88bf7e

Browse files
committed
fix(health): use absolute path for health check
1 parent efb6b31 commit f88bf7e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/soar-operations/src/health.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use std::path::PathBuf;
33
use soar_core::{package::remove::PackageRemover, SoarResult};
44
use soar_db::repository::core::CoreRepository;
55
use soar_events::{RemoveStage, SoarEvent};
6-
use soar_utils::{error::FileSystemResult, fs::walk_dir};
6+
use soar_utils::{error::FileSystemResult, fs::walk_dir, path::resolve_path};
77
use tracing::debug;
88

99
use crate::{
@@ -20,7 +20,7 @@ pub fn check_health(ctx: &SoarContext) -> SoarResult<HealthReport> {
2020
let path_env = std::env::var("PATH").unwrap_or_default();
2121
let path_configured = path_env
2222
.split(':')
23-
.any(|p| std::path::Path::new(p) == bin_path);
23+
.any(|p| resolve_path(p).unwrap_or_default() == bin_path);
2424

2525
let broken_packages = get_broken_packages(ctx)?;
2626
let broken_symlinks = get_broken_symlinks(ctx)?;

0 commit comments

Comments
 (0)