-
Notifications
You must be signed in to change notification settings - Fork 130
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
Bundled cli-ruby used by default #1346
Conversation
Thanks for your contribution! Depending on what you are working on, you may want to request a review from a Shopify team:
|
Benchmark reportThe following table contains a summary of the startup time for all commands.
|
8c8e01e
to
858e25d
Compare
This comment has been minimized.
This comment has been minimized.
Coverage report
Test suite run success1045 tests passing in 533 suites. Report generated by 🧪jest coverage report action from b6f93cf |
@alvaro-shopify I believe I am having similar issues relating to this, I would appreciate any insight you can give. When attempting to deploy an app to production (hosted on digital ocean if that matters), |
@Michael-Gibbons Ruby 2.5 reached end of life last year. We can't commit to support all older versions, and it wouldn't be a good practice security-wise. So please upgrade your Ruby version and let us know if you find any issue. Thanks! |
@gonzaloriestra I totally agree, the implication wasn't that all versions of ruby be supported. Rather I'm pointing out a circular dependency issue by introducing a local ruby dependency in a node package. Digital Ocean and heroku use heroku's nodejs buildpack which needs ruby 2.5 but shopify requires a local version of at least 2.7. Unless I do some major fiddling by ssh'ing into my remote server and sudo updating ruby which may break the buildpack I cannot build an app with extensions since part of An alternative solution would be to disable theme check in production. |
@Michael-Gibbons we know depending on Ruby is annoying and we are working on that (it will take some time). But Buildpack should work with recent Ruby versions, no? |
WHY are these changes introduced?
Fixes #1306
Some problems have appeared using the embedded version of
cli-ruby
to runthemes
commands ordev
command withtheme-app-extensions
Those problems seem to be related with the method used to install Ruby requirements in the local environment. There are also some problems with
theme-app-extensions
in windows as wellWHAT is this pull request doing?
themes
andtheme-app-extension
will use the bundled version ofcli-ruby
SHOPIFY_CLI_EMBEDDED_THEME_CLI
to run the command using the embedded version.How to test your changes?
theme
command with--verbose
flag and you should see an output similar to this:Post-release steps
Measuring impact
How do we know this change was effective? Please choose one:
Checklist
dev
ordeploy
have been reflected in the internal flowchart.