-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Cargo passes a nonexistent feature to rustc when building gitoxide #12336
Copy link
Copy link
Open
Labels
A-cargo-apiArea: cargo-the-library API and internal code issuesArea: cargo-the-library API and internal code issuesA-features2Area: issues specifically related to the v2 feature resolverArea: issues specifically related to the v2 feature resolverC-bugCategory: bugCategory: bugS-needs-designStatus: Needs someone to work further on the design for the feature or fix. NOT YET accepted.Status: Needs someone to work further on the design for the feature or fix. NOT YET accepted.
Metadata
Metadata
Assignees
Labels
A-cargo-apiArea: cargo-the-library API and internal code issuesArea: cargo-the-library API and internal code issuesA-features2Area: issues specifically related to the v2 feature resolverArea: issues specifically related to the v2 feature resolverC-bugCategory: bugCategory: bugS-needs-designStatus: Needs someone to work further on the design for the feature or fix. NOT YET accepted.Status: Needs someone to work further on the design for the feature or fix. NOT YET accepted.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Problem
When running
cargo buildon https://github.com/Byron/gitoxide Cargo passes a nonexistent feature torustc:--cfg 'feature="prodash"'. There is no featureprodashin anyCargo.toml, which can be confirmed withrg -t toml prodash.This breaks
cargo auditablewhich relies on all features passed as--cfgtorustcactually existing in the project. This also breaks builds for some Linux distributions that usecargo auditable, namely Void Linux and NixOS.When the feature
prodashis passed tocargo metadata, the following error is printed:Steps
Observe
--cfg 'feature="prodash"'appearing in the output even though there is no such feature in anyCargo.toml, which can be confirmed withrg -t toml prodash.The bug can also be reproduced by running
cargo install cargo-auditable; cargo auditable buildin the same directory.I have tried to create a minimal reproducing example that does not rely on the gitoxide repo, but failed.
Possible Solution(s)
No response
Notes
No response
Version