liquid icon indicating copy to clipboard operation
liquid copied to clipboard

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

Open wwohlers opened this issue 1 year ago • 3 comments

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>'

wwohlers avatar Jan 13 '25 20:01 wwohlers

+1

jsutter909 avatar Jan 13 '25 21:01 jsutter909

possibly they're missing the dependency in the gem file for lru_redux gem...

taf2 avatar Jan 13 '25 21:01 taf2

We ran into this too - looks like 5.6.3 might have fixed it? https://github.com/Shopify/liquid/pull/1887

broksonic21 avatar Jan 14 '25 13:01 broksonic21