-
Notifications
You must be signed in to change notification settings - Fork 73
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
Add try-catch to VM-Pip-Install #1258
base: main
Are you sure you want to change the base?
Conversation
16e9df4
to
f2e3b1c
Compare
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.
Thanks for working on this @sara-rn.
[nitpick] The commit message is a bit confusing and it does not explain why the change is needed. I propose to improve it as follows:
Add try-catch to VM-Pip-Install
Add missing `try-catch` to `VM-Pip-Install` so that packages using this
function (such as ida.plugin.hashdb.vm) don't have to add a try-catch.
ForEach ($library in $libraries.Split(",")) { | ||
# Ignore warning with `-W ignore` to avoid warnings like deprecation to fail the installation | ||
Invoke-Expression "py -3.10 -W ignore -m pip install $library --disable-pip-version-check 2>&1 >> $outputFile" | ||
try{ |
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.
[nitpick]
try{ | |
try { |
} | ||
Install-ChocolateyZipPackage @packageArgs |
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.
you can't remove the try-catch
in packages/ida.plugin.capa.vm/tools/chocolateyinstall.ps1
as the installation of the rules does not use the helper function and that could fail too.
2da03d2
to
fcd2527
Compare
Add missing `try-catch` to `VM-Pip-Install` so that packages using this function (such as ida.plugin.hashdb.vm) don't have to add a try-catch.
fcd2527
to
8c481fa
Compare
@Ana06 changes have been addressed, thanks for the review |
Remove try-catch from install scripts that use VM-Pip-Install
Closes #1205