Skip to content

Commit

Permalink
fix: if-else to check if it is a workspace or not has been corrected
Browse files Browse the repository at this point in the history
Signed-off-by: Soc Virnyl Estela <[email protected]>
  • Loading branch information
uncomfyhalomacro committed Nov 5, 2024
1 parent 66a8cc6 commit a532ec2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cargo/src/cargo_commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,9 @@ pub fn cargo_vendor(

if is_workspace {
info!("ℹ️ This project is a WORKSPACE configuration.");
} else if is_workspace && !has_deps {
warn!("⚠️ This workspace does not seem to have dependencies. Please check member dependencies.");
if !has_deps {
warn!("⚠️ The WORKSPACE MANIFEST does not seem to contain workspace dependencies and dev-dependencies. Please check member dependencies.");
}
} else if !has_deps {
info!("😄 This project does not seem to have any dependencies. Check manifest if we have no need to vendor.");
info!("🙂 If you think this is a BUG 🐞, please open an issue at <https://github.com/openSUSE-Rust/obs-service-cargo/issues>.");
Expand Down

0 comments on commit a532ec2

Please sign in to comment.