diff --git a/CHANGELOG.md b/CHANGELOG.md index 1adaf20f69..164f22ff09 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ #### 🐞 Fixes +- Fixed `moon ci` showing incorrect job related logs. - Fixed some issues with the Python toolchain: - pip is no longer required to be enabled to activate a virtual environment. - The venv root is now the location of a located `requirements.txt`, otherwise the package root, diff --git a/legacy/python/platform/src/actions/install_deps.rs b/legacy/python/platform/src/actions/install_deps.rs index 9a4af1b9e1..dbc1073eb1 100644 --- a/legacy/python/platform/src/actions/install_deps.rs +++ b/legacy/python/platform/src/actions/install_deps.rs @@ -45,8 +45,8 @@ pub async fn install_deps( } // Add requirements.txt path, if found - if let Some(req) = &requirements_path { - args.extend(["-r", req.to_str().unwrap_or_default()]); + if let Some(reqs_path) = requirements_path.as_ref().and_then(|req| req.to_str()) { + args.extend(["-r", reqs_path]); } if !args.is_empty() {