-
-
Notifications
You must be signed in to change notification settings - Fork 221
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
feat: Expose downloadBinary
function to install binary
#1817
Conversation
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.
Nice! I believe this was the actual download logic is more or less C&P from what we had before, correct?
(fwiw, TS would probably make sense but let's not overcomplicate things)
Correct. I didn't change anything except for adding the logger thing. |
if (process.env.SENTRYCLI_SKIP_DOWNLOAD === '1') { | ||
logger.log(`Skipping download because SENTRYCLI_SKIP_DOWNLOAD=1 detected.`); | ||
return; | ||
} |
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.
this should return Promise. it makes error on flag 1
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.
Ah right. Good catch!
We would like to be able to install the CLI manually in downstream dependencies in case postinstall scripts did not get executed.