Shopify / Shopify/liquid

CI failure: "`require': cannot load such file -- lru_redux (LoadError)"

Open
#1,885 3 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

More Information Needed
Dominant language
Ruby
Stars
11.9k
Forks
1.5k
Avg merge
17h 55m
Merged PRs (30d)
3

Description

Ubuntu 24.04.1
Ruby v3.0
Liquid 5.6.1

Since the latest release (30 min ago), we just started receiving the following error in Github Actions CI when deploying a theme extension by running the command shopify app deploy:

bundler: failed to load command: theme-check (/home/runner/.cache/shopify-gems-nodejs/ruby/3.0.0/bin/theme-check)
/home/runner/.cache/shopify-gems-nodejs/ruby/3.0.0/gems/liquid-5.6.1/lib/liquid/context.rb:3:in `require': cannot load such file -- lru_redux (LoadError)
	from /home/runner/.cache/shopify-gems-nodejs/ruby/3.0.0/gems/liquid-5.6.1/lib/liquid/context.rb:3:in `<top (required)>'
	from /home/runner/.cache/shopify-gems-nodejs/ruby/3.0.0/gems/liquid-5.6.1/lib/liquid.rb:74:in `require'
	from /home/runner/.cache/shopify-gems-nodejs/ruby/3.0.0/gems/liquid-5.6.1/lib/liquid.rb:74:in `<top (required)>'
	from /home/runner/.cache/shopify-gems-nodejs/ruby/3.0.0/gems/theme-check-1.15.0/lib/theme_check.rb:2:in `require'
	from /home/runner/.cache/shopify-gems-nodejs/ruby/3.0.0/gems/theme-check-1.15.0/lib/theme_check.rb:2:in `<top (required)>'
	from /home/runner/.cache/shopify-gems-nodejs/ruby/3.0.0/gems/theme-check-1.15.0/exe/theme-check:4:in `require'
	from /home/runner/.cache/shopify-gems-nodejs/ruby/3.0.0/gems/theme-check-1.15.0/exe/theme-check:4:in `<top (required)>'
	from /home/runner/.cache/shopify-gems-nodejs/ruby/3.0.0/bin/theme-check:25:in `load'
	from /home/runner/.cache/shopify-gems-nodejs/ruby/3.0.0/bin/theme-check:25:in `<top (required)>'
	from /opt/hostedtoolcache/Ruby/3.0.7/x64/lib/ruby/gems/3.0.0/gems/bundler-2.5.23/lib/bundler/cli/exec.rb:58:in `load'
	from /opt/hostedtoolcache/Ruby/3.0.7/x64/lib/ruby/gems/3.0.0/gems/bundler-2.5.23/lib/bundler/cli/exec.rb:58:in `kernel_load'
	from /opt/hostedtoolcache/Ruby/3.0.7/x64/lib/ruby/gems/3.0.0/gems/bundler-2.5.23/lib/bundler/cli/exec.rb:23:in `run'
	from /opt/hostedtoolcache/Ruby/3.0.7/x64/lib/ruby/gems/3.0.0/gems/bundler-2.5.23/lib/bundler/cli.rb:[45](https://github.com/Alia-Software/alia-shopify/actions/runs/12755138452/job/35551311585#step:10:46)6:in `exec'
	from /opt/hostedtoolcache/Ruby/3.0.7/x64/lib/ruby/gems/3.0.0/gems/bundler-2.5.23/lib/bundler/vendor/thor/lib/thor/command.rb:28:in `run'
	from /opt/hostedtoolcache/Ruby/3.0.7/x64/lib/ruby/gems/3.0.0/gems/bundler-2.5.23/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
	from /opt/hostedtoolcache/Ruby/3.0.7/x64/lib/ruby/gems/3.0.0/gems/bundler-2.5.23/lib/bundler/vendor/thor/lib/thor.rb:527:in `dispatch'
	from /opt/hostedtoolcache/Ruby/3.0.7/x64/lib/ruby/gems/3.0.0/gems/bundler-2.5.23/lib/bundler/cli.rb:35:in `dispatch'
	from /opt/hostedtoolcache/Ruby/3.0.7/x64/lib/ruby/gems/3.0.0/gems/bundler-2.5.23/lib/bundler/vendor/thor/lib/thor/base.rb:584:in `start'
	from /opt/hostedtoolcache/Ruby/3.0.7/x64/lib/ruby/gems/3.0.0/gems/bundler-2.5.23/lib/bundler/cli.rb:29:in `start'
	from /opt/hostedtoolcache/Ruby/3.0.7/x64/lib/ruby/gems/3.0.0/gems/bundler-2.5.23/exe/bundle:28:in `block in <top (required)>'
	from /opt/hostedtoolcache/Ruby/3.0.7/x64/lib/ruby/gems/3.0.0/gems/bundler-2.5.23/lib/bundler/friendly_errors.rb:117:in `with_friendly_errors'
	from /opt/hostedtoolcache/Ruby/3.0.7/x64/lib/ruby/gems/3.0.0/gems/bundler-2.5.23/exe/bundle:20:in `<top (required)>'
	from /opt/hostedtoolcache/Ruby/3.0.7/x64/bin/bundle:23:in `load'
	from /opt/hostedtoolcache/Ruby/3.0.7/x64/bin/bundle:23:in `<main>'

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the stack trace in lib/liquid/context.rb, then inspect the Liquid and theme-check loading paths shown in the report. Reproduce the failure with the reported Ruby, Liquid, and Ubuntu versions while running shopify app deploy. Done means the GitHub Actions deployment starts theme-check without the lru_redux LoadError.

Written by the indexing model from the issue text.

Assessment

Tech stack
ruby
Domain
web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.