cli icon indicating copy to clipboard operation
cli copied to clipboard

Update minimum ruby version requirement

Open codlp opened this issue 1 year ago • 0 comments

Please confirm that you have:

  • [X] Searched existing issues to see if your issue is a duplicate. (If you’ve found a duplicate issue, feel free to add additional information in a comment on it.)
  • [X] Reproduced the issue in the latest CLI version.

In which of these areas are you experiencing a problem?

Theme

Expected behavior

With ruby version 2.7.2 installed, running the command shopify theme pull --store {store-name} should pull my store's files. Indeed, the Shopify CLI's docs indicates that, to work with themes, we need to have ruby version 2.7.2 or higher.

Actual behavior

With ruby version 2.7.2 installed, running the command shopify theme pull --store {store-name} returns the following error: "Ruby version 2.7.2 is not supported. Make sure you have at least Ruby 2.7.5 installed on your system."

Verbose output

Analytics event sent: {
  "command": "theme pull",
  "time_start": 1714478496054,
  "time_end": 1714478496078,
  "total_time": 24,
  "success": false,
  "cli_version": "3.59.2",
  "ruby_version": "2.7.2",
  "node_version": "20.11.1",
  "is_employee": false,
  "uname": "darwin arm64",
  "env_ci": false,
  "env_plugin_installed_any_custom": false,
  "env_plugin_installed_shopify": "[\"@shopify/cli\"]",
  "env_shell": "zsh",
  "env_device_id": "e4e0190f7867848be507a145cb095581c404c253",
  "env_cloud": "localhost",
  "env_package_manager": "npm",
  "env_is_global": false,
  "cmd_all_timing_network_ms": 0,
  "cmd_all_timing_prompts_ms": 0,
  "cmd_all_launcher": "npm",
  "cmd_all_topic": "theme",
  "cmd_all_plugin": "@shopify/cli",
  "cmd_all_force": false,
  "cmd_all_timing_active_ms": 24,
  "cmd_all_exit": "expected_error",
  "args": "--store 2024-playground.myshopify.com -- --verbose",
  "error_message": "Unexpected argument: --verbose\nSee more help with --help",
  "env_plugin_installed_all": "[\"@shopify/cli\"]",
  "metadata": "{\"extraPublic\":{},\"extraSensitive\":{}}"
}

Reproduction steps

  1. Install ruby 2.7.2
  2. In the terminal, run the command shopify theme pull --store {store-name} or npx shopify theme pull --store {store-name} (if you did not have the permission to install the Shopify CLI globally on your Shopify laptop.
  3. In the terminal, see the returned error.

Operating System

Mac OS

Shopify CLI version (check your project's package.json if you're not sure)

3.59.2

Shell

zsh

Node version (run node -v if you're not sure)

20.11.1

What language and version are you using in your application?

Ruby 2.7.2

codlp avatar Apr 30 '24 12:04 codlp