-
Notifications
You must be signed in to change notification settings - Fork 15
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: Hash detection affects all Search results #107
base: main
Are you sure you want to change the base?
Conversation
It seems that directly adding a |
or add a new flag to decide how to control hash check failed. |
I pushed a new update to fix the issue without affecting the structure.
|
hopefully superseded by #111 |
I believe there is a substantial difference between these two PRs. Your PR seems to fix the Hash operation, but what this PR does is: if there is a Hash check failure, it does not affect the results of Do you intend to fix this issue in your PR? Thank you. |
aah okok my bad. well yeah, maybe once the fix lands, we can think about what should happen if a hash fails 😉 |
Thanks for the PR, sorry for the late reply. I think the logic could be simplified: Inside |
Again, sorry for the late reply, I don't have much time to consistently work on nupm. There are still test failures. There are some hash mismatches and |
Btw, you might experience some type-related errors due to the last Nushell update. I fixed those on the main branch. |
do I need edit tests/nu.nu or just https://github.com/nushell/nupm/blob/main/tests/packages/registry/spam_script.nuon this file? |
I haven't looked closely, but the |
Only this part used search-package, but only take Lines 50 to 61 in e9f39ea
Maybe because this? Line 11 in 335a577
did test will check this var? |
I found a cols check at here: Lines 234 to 240 in e9f39ea
I want delete |
Yeah, this sounds reasonable. |
Description
The current Hash check in the code will directly cause the program to throw an error. When using Search, if there is even one Hash check failure, no information can be displayed.
I have fixed this issue and retained the error throw in the Install section. However, I don't think it's necessary to make the program fail to run specifically because of this issue.
The possible useful solutions I have thought of, which I can modify if you are willing to accept, are: