Skip to content

Commit

Permalink
🐛 dev-dependencies should be taken into account for dep tree
Browse files Browse the repository at this point in the history
  • Loading branch information
loispostula committed Nov 27, 2024
1 parent 607a453 commit 63a2ff9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cargo-fslabscli"
version = "2.4.3"
version = "2.4.4"
edition = "2021"
authors = ["FSLABS DevOps Gods"]
repository = "https://github.com/ForesightMiningSoftwareCorporation/fslabsci"
Expand Down
5 changes: 3 additions & 2 deletions src/commands/check_workspace/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use std::str::FromStr;
use std::time::Instant;

use anyhow::Context;
use cargo_metadata::{DependencyKind, MetadataCommand, Package};
use cargo_metadata::{MetadataCommand, Package};
use clap::Parser;
use console::{style, Emoji};
use futures_util::StreamExt;
Expand Down Expand Up @@ -296,7 +296,8 @@ impl Result {
let dependencies: Vec<ResultDependency> = package
.dependencies
.into_iter()
.filter(|p| p.kind == DependencyKind::Normal)
// Somehow, we now need to put the devedependencies in the tree
// .filter(|p| p.kind == DependencyKind::Normal)
.map(|d| ResultDependency {
package: Some(d.name),
path: d.path.map(|p| p.into()),
Expand Down

0 comments on commit 63a2ff9

Please sign in to comment.