Skip to content

cargo-chef isn't local registry aware #74

Closed

Description

@prestontw

Link to minimal repo: https://github.com/prestontw/cargo-chef-vendored-repo

I've vendored the dependencies of a small Rocket app using cargo vendor. I've then updated .cargo/config.toml so that cargo build uses the local dependencies. Trying to run cargo chef errors with checksum changes (since cargo chef has replaced all of the lib.rs files in the dependencies with empty files?).

I'm thinking if we make cargo chef aware of .cargo/config.toml, we will know not to skelefy these vendored files.

Aside: using cargo-local-registry is fine since it stores dependencies in zipped files, so cargo chef doesn't skelefy them.

Activity

  1. LukeMathWalker commented on Aug 30, 2021

    @LukeMathWalker
    Owner

    .cargo/config.toml is already part of the recipe file, so it should be possible to make this work without any changes to the CLI parameters.

  2. added
    enhancement
    good first issue
    help wanted
    on Aug 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementgood first issuehelp wanted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions