I love refactoring!!!! I’ll probably end up spending another 20 hours just on refactoring because it’s so fun!!!!
This time around I wanted to refactor the code so that our commands orchestrate stuff instead of the helper functions. For example, pkg.Install would first download a package, then install it, and then link it through shims and shortcuts all by itself.
This causes issues because it means error messages become slightly worse, and it creates a class of bugs due to edge cases where we don’t necessarily want this order of orchestration. Hence I did a lot of refactoring in the pkg module.
I also ended up adding a way to skip verification of downloads when downloading, installing or updating a package through --skip-verify. It’s a useful option in situations where there is a malformed manifest or simply no hash to begin with.
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.