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

Update action to Shopify CLI 3, lhci 0.13 and ruby 3.2 #77

Merged
merged 10 commits into from
Jan 5, 2024

Conversation

jamesmengo
Copy link
Contributor

@jamesmengo jamesmengo commented Jan 5, 2024

Bump installed Ruby Version to 3.2.0 to satisfy Nokigiri dependancy (more context in issue)
Ruby Maintenance Branches

Why did this happen?

Nokogiri is included as a dependancy via shopify-theme-check, so this started to break since the latest release ended support for Ruby 2.7

We could consider freezing the version in the gemspec for theme_check, but that would come with the tradeoff of not receiving future updates

Why Version 3.2.0?

  • Nokigiri requires > version 3.0.0, but 3.0.0 is approaching EOL in March 2024
  • This is the highest version that is supported by both CLI 2 and CLI 3

Validating this change

  • View the CI workflow results here
    - We execute this action on PRs in this repo so that we can validate behaviour
image

More notes

  • Migrated code to Shopify/cli 3 (from shopify/cli 2.x)
  • Bumped lhci to 0.13.x because... you know we should have a while ago 😅

@jamesmengo jamesmengo force-pushed the bump_ruby_version branch 3 times, most recently from 08aa4ce to 777f280 Compare January 5, 2024 02:56
@jamesmengo jamesmengo changed the title empty Bump Ruby Version to 3.3.0 Jan 5, 2024
@jamesmengo jamesmengo linked an issue Jan 5, 2024 that may be closed by this pull request
@jamesmengo jamesmengo self-assigned this Jan 5, 2024
@jamesmengo jamesmengo marked this pull request as ready for review January 5, 2024 03:37
@jamesmengo jamesmengo closed this Jan 5, 2024
@jamesmengo jamesmengo reopened this Jan 5, 2024
@jamesmengo jamesmengo changed the title Bump Ruby Version to 3.3.0 Bump Ruby Version to 3.2.0 Jan 5, 2024
@octipus
Copy link

octipus commented Jan 5, 2024

@jamesmengo was 3.1.4 not working then? I have tried it on a fork here but couldn't get it working. Haven't tried 3.2.0 though

@octipus
Copy link

octipus commented Jan 5, 2024

Nokogiri seems to be a dependency of shopify-cli 2x, not theme-check. I believe that bumping the ruby env on the lighthouse repo is not actually getting it fixed. I have tried it myself as well.

I believe the issue is here, where shopify-cli uses Nokogiri 1.13 whereas we need 1.15 or above. So basically the Shopify-cli needs to bump nokogiri dependency version.

Hope this helps

@jamesmengo
Copy link
Contributor Author

Nokogiri seems to be a dependency of shopify-cli 2x, not theme-check. I believe that bumping the ruby env on the lighthouse repo is not actually getting it fixed. I have tried it myself as well.

I believe the issue is here, where shopify-cli uses Nokogiri 1.13 whereas we need 1.15 or above. So basically the Shopify-cli needs to bump nokogiri dependency version.

Hope this helps

You're correct that Nokogiri is a dependancy of shopify-cli, but from my understanding the version causing an issue isn't coming from there, it's coming from theme-check which doesn't specify the version, which is what led to this breaking.

    nokogiri (1.14.2)
    theme-check (1.15.0)
      liquid (>= 5.4.0)
      nokogiri (>= 1.12)
      parser (~> 3)

https://github.com/Shopify/cli/blob/86c15f8f5da2ff99e9f710980dc9a2bd6d55f8c2/packages/cli-kit/assets/cli-ruby/Gemfile.lock#L114-L117

@charlespwd charlespwd force-pushed the bump_ruby_version branch 2 times, most recently from 4359cd8 to 22b6525 Compare January 5, 2024 17:39
@charlespwd charlespwd force-pushed the bump_ruby_version branch 5 times, most recently from ec17b6e to a66caae Compare January 5, 2024 18:42
@charlespwd charlespwd changed the title Bump Ruby Version to 3.2.0 Update action to Shopify CLI 3, lhci 0.13 and ruby 3.2 Jan 5, 2024
@charlespwd charlespwd merged commit c47b681 into main Jan 5, 2024
3 checks passed
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.

Shopify-CLI - Nokogiri dependency upgrade
3 participants