diff --git a/src/cli/add.rs b/src/cli/add.rs index 8ca1cbe38..8f631e2e8 100644 --- a/src/cli/add.rs +++ b/src/cli/add.rs @@ -110,7 +110,7 @@ pub async fn execute(args: Args) -> miette::Result<()> { // Sanity check of prefix location verify_prefix_location_unchanged( project - .environment_dir() + .pixi_dir() .join(consts::PREFIX_FILE_NAME) .as_path(), )?; diff --git a/src/environment.rs b/src/environment.rs index 3a40f8c75..9c4e5f4ef 100644 --- a/src/environment.rs +++ b/src/environment.rs @@ -80,7 +80,7 @@ pub fn sanity_check_project(project: &Project) -> miette::Result<()> { // Sanity check of prefix location verify_prefix_location_unchanged( project - .environment_dir() + .pixi_dir() .join(consts::PREFIX_FILE_NAME) .as_path(), )?;