Sha256: a9a010a49e806f4477180c5e7a7f7274a1b0e924314d00860e99e1dcf4aa804b
Contents?: true
Size: 1.1 KB
Versions: 9
Compression:
Stored size: 1.1 KB
Contents
#!/usr/bin/env ruby module Kernel # make an alias of the original require alias_method :original_require, :require # rewrite require def require(name) original_require(name) rescue LoadError => e # Special case for readline.so, which fails harmlessly on Windows raise if (name == "readline.so") && ShopifyCli::Context.new.windows? # Special case for psych (yaml), which rescues this itself raise if name == "#{RUBY_VERSION[/\d+\.\d+/]}/psych.so" STDERR.puts "[Note] You cannot use gems with Shopify CLI." STDERR.puts "[LoadError] #{e.message}" if ENV["DEBUG"] STDERR.puts e.backtrace STDERR.puts "\n" end STDERR.puts " They are disabled." STDERR.puts " Please don't modify the CLI locally." STDERR.puts " If you would like to contribute to the CLI project, please refer to" STDERR.puts " https://github.com/Shopify/shopify-cli/blob/main/.github/CONTRIBUTING.md" STDERR.puts "\n" raise end end require_relative "./load_shopify" exit(ShopifyCli::ErrorHandler.call do ShopifyCli::Core::EntryPoint.call(ARGV.dup) end)
Version data entries
9 entries across 9 versions & 1 rubygems