Skip to content
This repository was archived by the owner on Nov 20, 2023. It is now read-only.

Conversation

@lforst
Copy link
Contributor

@lforst lforst commented Nov 15, 2023

Export downloadCliBinary to download the CLI binary so it can be installed during build-time.

@lforst lforst requested review from Lms24 and mydea November 15, 2023 15:43
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.

Shouldn't the plugin call the the CLI's download functionality (rather than or in addition to exporting it)?

@lforst
Copy link
Contributor Author

lforst commented Nov 15, 2023

Shouldn't the plugin call the the CLI's download functionality (rather than or in addition to exporting it)?

It could, however, I would rather be able to do this from the outside in order to have more elaborate logging and error handling. For instance, if the download fails, I may not want to crash and simply skip uploading.

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.

:shipit:

@lforst
Copy link
Contributor Author

lforst commented Nov 15, 2023

As discussed offline, we'll for now do it this way and trial it in Next.js. If we see that it sustainably solves issues we will port this functionality to the newer plugins. If we don't have properly distributed binaries by then.

@lforst lforst merged commit 57b7f34 into master Nov 15, 2023
@lforst lforst deleted the lforst-export-install-function branch November 15, 2023 15:55
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants