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 · 0 comments

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
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

1 participant