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

Missing support for build-dependencies #37

Open
jocutajar opened this issue Jan 22, 2024 · 0 comments
Open

Missing support for build-dependencies #37

jocutajar opened this issue Jan 22, 2024 · 0 comments

Comments

@jocutajar
Copy link

  • What are you trying to do?

Depend on a dependency that has a build-dependency. Package A has build-dependency on bindgen from crates.io. Package A can be published to nexus just fine. Package B depends on A. Publishing package A ends up in error:

error[E0432]: unresolved import bindgen
and
use of undeclared crate or module bindgen

  • How could we solve this issue? (Not knowing is okay!)

It seems the build dependencies are silently converted to normal dependencies. The relevant kind field is hard-coded here -

Cloning the index I get:

{
    ...
    "deps": [
        {
            "name": "bindgen",
            "req": "^0.69",
            "features": [],
            "optional": false,
            "default_features": true,
            "kind": "normal",
            "registry": "https://github.com/rust-lang/crates.io-index"
        }
    ],
}

Instead, the dependency kind should be tracked from submission and reproduced in the index.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant