Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
patrickbkr opened this issue Jun 10, 2022 · 1 comment

Comments

@patrickbkr
Copy link
Contributor

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.

@ugexe
Copy link
Owner

ugexe commented Jun 10, 2022

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>

.grep(-> $candi { not @!exclude.first({$candi.dist.contains-spec($_)}) })\

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants