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

zef depends suggests using --exclude but then doesn't recognize the flag #517

Open
codesections opened this issue Jun 4, 2023 · 1 comment · May be fixed by #578
Open

zef depends suggests using --exclude but then doesn't recognize the flag #517

codesections opened this issue Jun 4, 2023 · 1 comment · May be fixed by #578

Comments

@codesections
Copy link

When zef depends cannot resolve a missing dependency, it suggests using --exclude to skip that dependency. But zef depends doesn't accept the --exclude flag. For example:

$ zef depends Red
> Failed to resolve some missing dependencies (use e.g. --exclude="pq" to skip)
$ zef depends Red --exclude="pq:ver<5>:from<native>"
> Usage:
>   zef [--depends] [--test-depends] [--build-depends] depends <identity> -- View dependencies of a distribution

zef depends should either respect the --exclude flag or shouldn't suggest using it.

ugexe added a commit that referenced this issue Jun 4, 2023
Previously e.g. `zef depends Red` could fail for users that did
not have the postgres native dependency installed. However, for
that specific command it shouldn't matter if it can't resolve a
native dependency because we don't look up transitive dependencies
for them. Instead we could just list the native dependency and
allow zef to continue finding other dependencies.

Fixes #517
@timo
Copy link
Contributor

timo commented Nov 21, 2024

this seems to still (or again) be an issue on latest:

timo@pebbsi:~/raku/ecosystem/zef$ zef install .
===> Staging zef:ver<0.22.3>:auth<github:ugexe>:api<0>
===> Staging [OK] for zef:ver<0.22.3>:auth<github:ugexe>:api<0>
===> Testing: zef:ver<0.22.3>:auth<github:ugexe>:api<0>
===> Testing [OK] for zef:ver<0.22.3>:auth<github:ugexe>:api<0>
===> Installing: zef:ver<0.22.3>:auth<github:ugexe>:api<0>

1 bin/ script [zef] installed to:
/var/home/timo/raku/prefix/share/perl6/site/bin
timo@pebbsi:~/raku/ecosystem/zef$ zef depends "App::Rak:ver<0.3.13>:auth<zef:lizmat>"
Failed to resolve some missing dependencies (use e.g. --exclude="git" to skip)
timo@pebbsi:~/raku/ecosystem/zef$ zef depends --exclude="git" "App::Rak:ver<0.3.13>:auth<zef:lizmat>"
Usage:
  zef [--depends] [--test-depends] [--build-depends] depends <identity> -- View dependencies of a distribution
timo@pebbsi:~/raku/ecosystem/zef$ git describe --tags
v0.22.3-1-gec6b768
timo@pebbsi:~/raku/ecosystem/zef$ zef --version
0.22.3
timo@pebbsi:~/raku/ecosystem/zef$ zef depends "App::Rak:ver<0.3.13>:auth<zef:lizmat>"
Failed to resolve some missing dependencies (use e.g. --exclude="git" to skip)

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

Successfully merging a pull request may close this issue.

2 participants