Skip to content

Commit 9b61804

Browse files
committed
test: develop feature
1 parent e9ee5e9 commit 9b61804

File tree

3 files changed

+8
-12
lines changed

3 files changed

+8
-12
lines changed

crates/pixi/tests/integration_rust/develop_dependencies_tests.rs

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@ use pixi_consts::consts;
55
use rattler_conda_types::Platform;
66

77
use crate::{
8-
common::{LockFileExt, PixiControl, package_database::{Package, PackageDatabase}},
8+
common::{
9+
LockFileExt, PixiControl,
10+
package_database::{Package, PackageDatabase},
11+
},
912
setup_tracing,
1013
};
1114

@@ -422,11 +425,7 @@ feature-package = {{ path = "./feature-package" }}
422425

423426
// Verify that zlib is in the "test" environment but not in the default environment
424427
assert!(
425-
lock_file.contains_conda_package(
426-
"test",
427-
Platform::current(),
428-
"zlib",
429-
),
428+
lock_file.contains_conda_package("test", Platform::current(), "zlib",),
430429
"zlib should be in the test environment lock-file (run dependency of feature-package)"
431430
);
432431

@@ -441,11 +440,7 @@ feature-package = {{ path = "./feature-package" }}
441440

442441
// Verify that feature-package itself is not built
443442
assert!(
444-
!lock_file.contains_conda_package(
445-
"test",
446-
Platform::current(),
447-
"feature-package",
448-
),
443+
!lock_file.contains_conda_package("test", Platform::current(), "feature-package",),
449444
"feature-package should NOT be in the lock-file (it's a develop dependency)"
450445
);
451446
}

crates/pixi_command_dispatcher/src/expand_dev_sources/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ impl ExpandDevSourcesSpec {
156156
// TODO: Currently matching by name only. In the future, we might want to
157157
// also check if the source location matches for more precise matching.
158158
if dev_source_names.contains(&name) {
159-
continue
159+
continue;
160160
}
161161

162162
// Resolve relative paths for source dependencies

crates/pixi_core/src/lock_file/update.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1912,6 +1912,7 @@ pub enum TaskResult {
19121912
/// and uses the command dispatcher to expand them into their build/host/run dependencies.
19131913
///
19141914
/// Returns `None` if there are no develop dependencies.
1915+
#[allow(clippy::too_many_arguments)]
19151916
async fn expand_develop_dependencies(
19161917
develop_dependencies: IndexMap<PackageName, SourceSpec>,
19171918
group_name: GroupedEnvironmentName,

0 commit comments

Comments
 (0)