Skip to content
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

Merged
merged 5 commits into from
Nov 15, 2023

Conversation

lforst
Copy link
Member

@lforst lforst commented Nov 13, 2023

We would like to be able to install the CLI manually in downstream dependencies in case postinstall scripts did not get executed.

@lforst lforst self-assigned this Nov 13, 2023
Copy link
Member

@Lms24 Lms24 left a 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)

@lforst
Copy link
Member Author

lforst commented Nov 15, 2023

I believe this was the actual download logic is more or less C&P from what we had before, correct?

Correct. I didn't change anything except for adding the logger thing.

@lforst lforst merged commit 58f2ff8 into 1.x Nov 15, 2023
10 checks passed
@lforst lforst deleted the lforst-export-install-function branch November 15, 2023 11:27
if (process.env.SENTRYCLI_SKIP_DOWNLOAD === '1') {
logger.log(`Skipping download because SENTRYCLI_SKIP_DOWNLOAD=1 detected.`);
return;
}

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

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah right. Good catch!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants