Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cargo metadata tries to collect dev dependencies #128

Open
alexanderkjall opened this issue Nov 19, 2023 · 1 comment
Open

cargo metadata tries to collect dev dependencies #128

alexanderkjall opened this issue Nov 19, 2023 · 1 comment
Labels
third party Work item for a third-party dependency

Comments

@alexanderkjall
Copy link
Contributor

I modified the Debian cargo buildsystem to use auditable (finally) But ran into an issue that is maybe a bit philosophical in how it should be solved.

This is the error message from a test run trying to compile lsd:

thread 'main' panicked at 'cargo metadata failure: error: no matching package named `assert_cmd` found
location searched: registry `crates-io`
required by package `lsd v0.23.1 (/<<PKGBUILDDIR>>)`
', src/collect_audit_data.rs:77:9
stack backtrace:
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
error: could not compile `lsd`

assert_cmd is a dev-dependencies to lsd, and the Debian build system doesn't inject those in the environment when running the cargo install command.

That is hard to change, as that would introduce a large number of dependency loops.

Is it important to collect dev-dependencies, or could cargo metadata be instructed to not look for those maybe (This I haven't researched yet)?

@Shnatsel
Copy link
Member

I am not aware of any such mechanism. Perhaps there is some nightly config flag to keep going on failures? It's worth taking a look at, but I doubt there is one.

Since this is an issue in cargo metadata and not cargo auditable itself, unfortunately it is not something I can directly fix.

@Shnatsel Shnatsel added the third party Work item for a third-party dependency label Feb 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
third party Work item for a third-party dependency
Projects
None yet
Development

No branches or pull requests

2 participants