Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion crates/pixi_manifest/src/toml/manifest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ impl TomlManifest {

warnings.push(Warning::from(
GenericError::new(format!(
"The feature '{}' is defined but not used in any environment",
"The feature '{}' is defined but not used in any environment. Dependencies of unused features are not resolved or checked, and use wildcard (*) version specifiers by default, disregarding any set `pinning-strategy`",
feature_name
))
.with_opt_span(span)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ expression: "expect_parse_warnings(r#\"\n [workspace]\n name = \"t
╰────
help: Add one of 'osx-64', 'osx-arm64' to the supported platforms, using `pixi project platform add osx-64`

⚠ The feature 'foo' is defined but not used in any environment
⚠ The feature 'foo' is defined but not used in any environment. Dependencies of unused features are not resolved or checked, and use wildcard (*) version specifiers by default, disregarding any
│ set `pinning-strategy`
╭─[pixi.toml:7:18]
6 │
7 │ [feature.foo]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ expression: "expect_parse_warnings(r#\"\n [workspace]\n name = \"t
╰────
help: Add osx-64 to the supported platforms, using `pixi project platform add osx-64`

⚠ The feature 'foo' is defined but not used in any environment
⚠ The feature 'foo' is defined but not used in any environment. Dependencies of unused features are not resolved or checked, and use wildcard (*) version specifiers by default, disregarding any
│ set `pinning-strategy`
╭─[pixi.toml:7:18]
6 │
7 │ [feature.foo.target.osx-64.dependencies]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
source: crates/pixi_manifest/src/toml/manifest.rs
expression: "expect_parse_warnings(r#\"\n [workspace]\n name = \"foo\"\n channels = []\n platforms = ['osx-64']\n\n [feature.foobar.dependencies]\n\n [feature.generic.target.osx.dependencies]\n \"#,)"
---
⚠ The feature 'foobar' is defined but not used in any environment
⚠ The feature 'foobar' is defined but not used in any environment. Dependencies of unused features are not resolved or checked, and use wildcard (*) version specifiers by default, disregarding any
│ set `pinning-strategy`
╭─[pixi.toml:7:18]
6 │
7 │ [feature.foobar.dependencies]
Expand All @@ -11,7 +12,8 @@ expression: "expect_parse_warnings(r#\"\n [workspace]\n name = \"f
╰────
help: Remove the feature from the manifest or add it to an environment

⚠ The feature 'generic' is defined but not used in any environment
⚠ The feature 'generic' is defined but not used in any environment. Dependencies of unused features are not resolved or checked, and use wildcard (*) version specifiers by default, disregarding
│ any set `pinning-strategy`
╭─[pixi.toml:9:18]
8 │
9 │ [feature.generic.target.osx.dependencies]
Expand Down
Loading