-
Notifications
You must be signed in to change notification settings - Fork 83
Match last "got" in stderr to avoid false positives #433
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
Conversation
Due to the changes introduced in Mic92#349 the hash regex matches the output of pnpm when downloading the https://www.npmjs.com/package/got library. This causes the tool to incorrectly update the hash to the "got" version. To fix this the loop now starts searching from the last line, since the nix hash mismatch message is usually printed last. Signed-off-by: Marcin Serwin <[email protected]>
d89bcce to
dd41903
Compare
|
When the output looks like this ( …then this change causes the hash to get updated to |
|
I think that at this point it may be better to simply do two substring matches for |
Mhm. We actually have |
|
I think the easiest to fix this, is to add nix-update to this list here https://git.lix.systems/lix-project/nixos-module/src/branch/main/overlay.nix#L11-L22 |
|
If someone wants to patch it, to make it work with Lix again, I would merge it. However long-term I want to switch to |
Due to the changes introduced in #349 the hash regex matches the output of pnpm when downloading the https://www.npmjs.com/package/got library. This causes the tool to incorrectly update the hash to the "got" version. To fix this I simply changed the for loop to look for the last regex match in the stderr instead of the first, since the nix hash mismatch message is usually printed last.