Skip to content

Error message should be more informative when build fails due to missing vendored dependencies #6111

Closed
@bholley

Description

@bholley

We use 'replace-with' in mozilla-central [1] to force all dependencies to be vendored. However, if somebody does |cargo update| and then does not re-vendor the sources, the provided error message is pretty opaque:

0:10.34 error: no matching version = 1.0.23 found for package libz-sys
0:10.34 location searched: registry https://github.com/rust-lang/crates.io-index
0:10.34 versions found: 1.0.16
0:10.34 required by package mozjs_sys v0.0.0 (file:///files/mozilla/mc/b/js/src)

It would be nice to inform the user that a replace-with is active for source.crates-io and that they may want to revendor. This bit @ekr today.

CC @alexcrichton @aturon

[1] https://searchfox.org/mozilla-central/rev/819cd31a93fd50b7167979607371878c4d6f18e8/.cargo/config.in#6

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions