TimonPost / cargo-dependency-inheritor

Utility to inherit dependencies from workspace file if it occurs 'n' or more times throughout the project.
Apache License 2.0
30 stars 1 forks source link

Fix "subcommand wasn't recognized" when invoked under `cargo` #2

Closed MarijnS95 closed 1 year ago

MarijnS95 commented 1 year ago

Fixes #1

Users are seeing:

error: The subcommand 'dependency-inheritor' wasn't recognized

        Did you mean 'dependency-inherit'?

This happens because the resulting exectuable is cargo-dependency-inheritor (this package name), which cargo invokes with dependency-inheritor as subcommand whereas the Cargo enum variant was expecting dependency-inherit (based on DependencyInherit).

MarijnS95 commented 1 year ago

@TimonPost you deleted the entire struct DependencyInherit when merging main into this :scream:

TimonPost commented 1 year ago

lol, will fix it. NEED CI.