You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 -
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:It seems the
build
dependencies are silently converted tonormal
dependencies. The relevantkind
field is hard-coded here -nexus-repository-cargo/src/main/java/org/sonatype/nexus/plugins/cargo/registry/CargoRegistryFacetImpl.java
Line 204 in 57760b6
Cloning the index I get:
Instead, the dependency kind should be tracked from submission and reproduced in the index.
The text was updated successfully, but these errors were encountered: