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

Warn when resolving npm packages marked as deprecated #184

Merged
merged 3 commits into from Feb 28, 2023

Conversation

amitdahan
Copy link
Contributor

@amitdahan amitdahan commented Feb 26, 2023

Summary

Fixes #157.

Screen.Recording.2023-02-28.at.12.37.46.mov

Sadly, mixing warn! and indicatif leaves a stale progress bar line in the terminal.
This is described here: console-rs/indicatif#92.

This comment suggests calling ProgressBar::suspend() before doing any other terminal logging, I could do that but I can't think of a clean-enough way of achieving it without coupling things too much so I'd love ideas, or whether it's not too important for now?

Copy link
Member

@zkat zkat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for tackling this! I have some thoughts on the approach, though I appreciate you taking the time. :)

crates/nassun/Cargo.toml Outdated Show resolved Hide resolved
crates/nassun/src/resolver.rs Outdated Show resolved Hide resolved
@amitdahan amitdahan requested a review from zkat February 28, 2023 10:41
Copy link
Member

@zkat zkat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good now! :) Thank you!

@zkat zkat merged commit 45a953b into orogene:main Feb 28, 2023
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 this pull request may close these issues.

warn about deprecated packages
2 participants