You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bin/importmap pin without arguments is raising an exception #317
$ bin/importmap pin
/Users/rafaelfranca/.gem/ruby/3.4.4/gems/importmap-rails-2.2.2/lib/importmap/commands.rb:183:in 'Importmap::Commands#for_each_import': undefined method 'each' for nil (NoMethodError)
response[:imports].each(&block)
^^^^^
from /Users/rafaelfranca/.gem/ruby/3.4.4/gems/importmap-rails-2.2.2/lib/importmap/commands.rb:17:in 'Importmap::Commands#pin'
from /Users/rafaelfranca/.gem/ruby/3.4.4/gems/thor-1.4.0/lib/thor/command.rb:28:in 'Thor::Command#run'
from /Users/rafaelfranca/.gem/ruby/3.4.4/gems/thor-1.4.0/lib/thor/invocation.rb:127:in 'Thor::Invocation#invoke_command'
from /Users/rafaelfranca/.gem/ruby/3.4.4/gems/thor-1.4.0/lib/thor.rb:538:in 'Thor.dispatch'
from /Users/rafaelfranca/.gem/ruby/3.4.4/gems/thor-1.4.0/lib/thor/base.rb:584:in 'Thor::Base::ClassMethods#start'
from /Users/rafaelfranca/.gem/ruby/3.4.4/gems/importmap-rails-2.2.2/lib/importmap/commands.rb:190:in '<main>'
from /opt/rubies/3.4.4/lib/ruby/3.4.0/bundled_gems.rb:82:in 'Kernel.require'
from /opt/rubies/3.4.4/lib/ruby/3.4.0/bundled_gems.rb:82:in 'block (2 levels) in Kernel#replace_require'
from /Users/rafaelfranca/.gem/ruby/3.4.4/gems/bootsnap-1.18.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in 'Kernel#require'
from /Users/rafaelfranca/.gem/ruby/3.4.4/gems/zeitwerk-2.7.3/lib/zeitwerk/core_ext/kernel.rb:34:in 'Kernel#require'
from bin/importmap:5:in '<main>'
Activity
Don't crash on `bin/importmap pin` with no arguments
Don't crash on `bin/importmap pin` with no arguments
Don't crash on `bin/importmap pin` with no arguments