From 7e821ba7a362cc634a705ea56e11b070b7b95784 Mon Sep 17 00:00:00 2001 From: Ogulcan Celik Date: Wed, 22 Jul 2026 23:06:52 +0300 Subject: fix: respect OMP config directory override refs #1696 --- src/integration/targets.rs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/integration/targets.rs') diff --git a/src/integration/targets.rs b/src/integration/targets.rs index 99c150a3..5d5e730c 100644 --- a/src/integration/targets.rs +++ b/src/integration/targets.rs @@ -69,6 +69,13 @@ pub(crate) fn install_pi() -> io::Result { pub(crate) fn install_omp() -> io::Result { let dir = omp_extension_dir()?; + let pi_dir = pi_extension_dir()?; + if dir == pi_dir { + return Err(io::Error::other(format!( + "Pi and OMP resolve to the same extension directory at {}; configure separate agent directories before installing OMP", + dir.display() + ))); + } ensure_extension_dir(&dir, "omp")?; let removed_legacy_pi_extension = remove_legacy_pi_extension_from_omp_dir(&dir)?; -- cgit v1.2.3