-
Notifications
You must be signed in to change notification settings - Fork 21
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
fix(install/clean): infinite loops on circular dependencies #211
Conversation
7de11ef
to
3098022
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #211 +/- ##
==========================================
+ Coverage 92.65% 92.68% +0.02%
==========================================
Files 57 57
Lines 2847 2871 +24
==========================================
+ Hits 2638 2661 +23
- Misses 209 210 +1 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Didn't expect you to fix this issue yourself. Very cool.
Anyway, I have some change requests.
crates/cli/tests/install.rs
Outdated
|
||
eprintln!("Snapshot"); | ||
let index_file_contents = index_file_contents(&store_dir); | ||
insta::assert_yaml_snapshot!(index_file_contents); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do really need this snapshot test? Maybe just check if the package is present in node_modules
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done ~
3098022
to
c2b121c
Compare
add
resolved_packages
memo cache to state to avoid infinite loops when installing circular dependencies