Skip to content

Local patch(s) with remote in published copy. #7519

@cheako

Description

@cheako

This(B) comes from(A) not wanting linting fmt/clippy to descend into feather from hazel-feather. See https://www.reddit.com/r/rust/comments/dimku2/crate_patching_and_fmtclippy/

The goal(A) is to have hazel-feather depend on a patched and volatile feather, that isn't linted recursively.

The goal(B) is to git push something anyone can build where [patch.crates-io] references git/remote. While at the same time having [patch.crates-io] references a path/local.

On Unix ~/.cargo/overrides has something like:

[hazel-feather.patch.crates-io.feather]
path = "../feather"

https://gitlab.com/cheako/hazel-feather/blob/77e70dbc9f760964df2ae66048032c5a3be3f388/Cargo.toml

The example takes any source where name = "hazel-feather". Might be better to use path to identify where to apply the override. For this project it's expected that feather will be edited a lot and it isn't good to have to push to gitlab for every change.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions