]> git.proxmox.com Git - cargo.git/commit
Show an error messager for invalid semver spec for packages in the [replace] section.
authorJuan Hernández <juan.hernandez.babon@gmail.com>
Fri, 30 Sep 2016 11:27:10 +0000 (13:27 +0200)
committerJuan Hernández <juan.hernandez.babon@gmail.com>
Fri, 30 Sep 2016 11:27:10 +0000 (13:27 +0200)
commitb43e6dd2d6d9965cae17698b40201ca4b5143b06
tree5bf51de25a8810383bb383ada40e2ff3945dec7d
parentcbe47ed52e6783ea6e53955f096527a3adae2a96
Show an error messager for invalid semver spec for packages in the [replace] section.

The [replace] section in the Cargo.toml file doesn't allow invalid semver specs
for packages, so something like this:

    [dependencies]
    foo = "*"

    [replace]
    "foo:*" = { git = 'https://example.com' }

It's not valid. In this case we will display an error message like this:

    error: failed to parse manifest at `Cargo.toml`

    Caused by:
      replacements must specify a valid semver version to replace, but `foo:*` does not
src/cargo/core/package_id_spec.rs
src/cargo/util/toml.rs
tests/overrides.rs