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

Suppress unearth's collector warning regarding failed links when working with multiple indexes #3226

Open
o-moe opened this issue Oct 22, 2024 · 0 comments
Labels
⭐ enhancement Improvements for existing features

Comments

@o-moe
Copy link
Contributor

o-moe commented Oct 22, 2024

Is your feature/enhancement proposal related to a problem? Please describe.

Not a problem but low user experience imho:

When additional (private) indexes are added (default pypi is not overwritten), then commands like pdm outdated or pdm list --resolve (basically every command that iterates the configured indexes and uses unearth's collector) is showing these kind of warnings for the index that does not host the package:

Failed to collect links from http://[private index url]/simple/[package name]/: Client Error(404): Not Found

Depending on the count of default or dev dependencies, those warning are flooding the terminal before the actual command output is provided.

The warning seems to originate from here.

Describe the solution you'd like

Since it is expected that some/all packages are not available on all given indexes, these warnings should be suppressed and maybe only shown if verbosity of the command is increased.

@o-moe o-moe added the ⭐ enhancement Improvements for existing features label Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⭐ enhancement Improvements for existing features
Projects
None yet
Development

No branches or pull requests

1 participant