zef icon indicating copy to clipboard operation
zef copied to clipboard

Missing dep hint `(use e.g. --exclude="WebService::GitHub" to skip)` is too naive for more complex deps

Open patrickbkr opened this issue 3 years ago • 1 comments

patrickb@RakudoCIBot [1]$ zef install --deps-only --exclude="WebService::GitHub" .
===> Searching for missing dependencies: LibXML:ver<0.7.4>:auth<zef:dwarring>, Red:ver<0.1.60>:auth<zef:FCO>:api<2>, Log::Async:ver<0.0.8>, WebService::GitHub:ver<0.2.2>:auth<zef:raku-community-modules>:api<1>, Test::SourceFiles, Test::Mock
===> Failed to find dependencies: WebService::GitHub:ver<0.2.2>:auth<zef:raku-community-modules>:api<1>
Failed to resolve some missing dependencies (use e.g. --exclude="WebService::GitHub" to skip)
patrickb@RakudoCIBot [1]$ zef install --deps-only --exclude="WebService::GitHub:ver<0.2.2>:auth<zef:raku-community-modules>:api<1>" .
===> Searching for missing dependencies: LibXML:ver<0.7.4>:auth<zef:dwarring>, Red:ver<0.1.60>:auth<zef:FCO>:api<2>, Log::Async:ver<0.0.8>, Test::SourceFiles, Test::Mock
===> Searching for missing dependencies: Method::Also, W3C::DOM:ver<0.0.2+>, XML, AttrX::Mooish:ver<0.8.4+>:auth<zef:vrurg>, LibraryMake, DBIish, DB::Pg, UUID, App::RaCoCo
===> Searching for missing dependencies: NativeHelpers::Blob, NativeLibs, NativeCall::TypeDiag, Test::When, NativeLibs:ver<0.0.7+>:auth<github:salortiz>, LibUUID, Shell::Command
===> Searching for missing dependencies: File::Which, File::Find
===> Building: LibXML:ver<0.7.4>:auth<zef:dwarring>
...

Zef recommends to use --exclude="WebService::GitHub", which doesn't help. Using --exclude="WebService::GitHub:ver<0.2.2>:auth<zef:raku-community-modules>:api<1>" does help though. Zef should recommend respectively.

I'm on zef v0.13.8.

patrickbkr avatar Jun 10 '22 14:06 patrickbkr

Hmm, I'd expect the first example to still have worked since it should match WebService::GitHub:ver<*>:api<*> (aka WebService::GitHub) to WebService::GitHub:ver<0.2.2>:auth<zef:raku-community-modules>:api<1> https://github.com/ugexe/zef/blob/7c46ca2d5a1f78c86a5c543c4080774b30770ddb/lib/Zef/Client.rakumod#L370

ugexe avatar Jun 10 '22 15:06 ugexe