Skip to content

Refusing to operate on extant directory #96

@Lupus

Description

@Lupus

It's not clear how to use this tool to update already existing vendor dir, wether it was created by cargo vendor or by cargo vendor-filterer - in both cases vendor-filterer bails out with this error: error: Refusing to operate on extant directory: vendor.

If I remove the vendor dir, it fails like this:

error: Executing cargo metadata (first run): Error during execution of `cargo metadata`: error: failed to get `anyhow` as a dependency of package `...` ...

Running cargo vendor without vendor dir works just fine and recreates it back. Same is true for an existing vendor dir - cargo vendor goes on and updates it.

I managed to recreate vendor dir with vendor-filterer by removing vendor dir and removing vendoring-related configuration out of .config/cargo.toml, but then I had to add this configuration back so that vendoring dir is in use by cargo. This sounds very cumbersone. Isn't there some better UX available? Updating vendor dir seems like a common pattern in a Rust project.

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