google-cloud-sql-v1 attempts to include nonexistent files, which cause it to fail.
There is no google/cloud/sql/v1/sql_available_database_versions_service.rb in the gem, but there is instead lib/google/cloud/sql/v1/cloud_sql_available_database_versions_service_pb.rb
Environment details
- OS: MacOS
- Ruby version: 3.2.8
- Gem name and version: google-cloud-sql-v1
0.1.0
Steps to reproduce
- Add
google-cloud-sql-v1 gem to project
- Require gem in program
- Run program
Code example
require "google/cloud/sql/v1"
Full backtrace
<internal:/usr/local/lib/ruby/site_ruby/3.3.0/rubygems/core_ext/kernel_require.rb>:37:in `require': cannot load such file -- google/cloud/sql/v1/sql_available_database_versions_service (LoadError)
from <internal:/usr/local/lib/ruby/site_ruby/3.3.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
from /gems/ruby/3.3.0/gems/bootsnap-1.17.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:17:in `require'
from /gems/ruby/3.3.0/gems/zeitwerk-2.6.13/lib/zeitwerk/kernel.rb:34:in `require'
from /gems/ruby/3.3.0/gems/google-cloud-sql-v1-0.1.0/lib/google/cloud/sql/v1.rb:19:in `<main>'
from <internal:/usr/local/lib/ruby/site_ruby/3.3.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
from <internal:/usr/local/lib/ruby/site_ruby/3.3.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
from /gems/ruby/3.3.0/gems/bootsnap-1.17.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
from /gems/ruby/3.3.0/gems/zeitwerk-2.6.13/lib/zeitwerk/kernel.rb:34:in `require'
from /app/config/initializers/google_cloud.rb:4:in `<main>'
from /gems/ruby/3.3.0/gems/railties-7.1.3.2/lib/rails/engine.rb:690:in `load'
from /gems/ruby/3.3.0/gems/railties-7.1.3.2/lib/rails/engine.rb:690:in `block in load_config_initializer'
from /gems/ruby/3.3.0/gems/activesupport-7.1.3.2/lib/active_support/notifications.rb:208:in `instrument'
from /gems/ruby/3.3.0/gems/railties-7.1.3.2/lib/rails/engine.rb:689:in `load_config_initializer'
from /gems/ruby/3.3.0/gems/railties-7.1.3.2/lib/rails/engine.rb:643:in `block (2 levels) in <class:Engine>'
from /gems/ruby/3.3.0/gems/railties-7.1.3.2/lib/rails/engine.rb:642:in `each'
from /gems/ruby/3.3.0/gems/railties-7.1.3.2/lib/rails/engine.rb:642:in `block in <class:Engine>'
from /gems/ruby/3.3.0/gems/railties-7.1.3.2/lib/rails/initializable.rb:32:in `instance_exec'
from /gems/ruby/3.3.0/gems/railties-7.1.3.2/lib/rails/initializable.rb:32:in `run'
from /gems/ruby/3.3.0/gems/railties-7.1.3.2/lib/rails/initializable.rb:61:in `block in run_initializers'
from /usr/local/lib/ruby/3.3.0/tsort.rb:231:in `block in tsort_each'
from /usr/local/lib/ruby/3.3.0/tsort.rb:353:in `block (2 levels) in each_strongly_connected_component'
from /usr/local/lib/ruby/3.3.0/tsort.rb:425:in `block (2 levels) in each_strongly_connected_component_from'
from /usr/local/lib/ruby/3.3.0/tsort.rb:434:in `each_strongly_connected_component_from'
from /usr/local/lib/ruby/3.3.0/tsort.rb:424:in `block in each_strongly_connected_component_from'
from /gems/ruby/3.3.0/gems/railties-7.1.3.2/lib/rails/initializable.rb:50:in `each'
from /gems/ruby/3.3.0/gems/railties-7.1.3.2/lib/rails/initializable.rb:50:in `tsort_each_child'
from /usr/local/lib/ruby/3.3.0/tsort.rb:418:in `call'
from /usr/local/lib/ruby/3.3.0/tsort.rb:418:in `each_strongly_connected_component_from'
from /usr/local/lib/ruby/3.3.0/tsort.rb:352:in `block in each_strongly_connected_component'
from /usr/local/lib/ruby/3.3.0/tsort.rb:350:in `each'
from /usr/local/lib/ruby/3.3.0/tsort.rb:350:in `call'
from /usr/local/lib/ruby/3.3.0/tsort.rb:350:in `each_strongly_connected_component'
from /usr/local/lib/ruby/3.3.0/tsort.rb:229:in `tsort_each'
from /usr/local/lib/ruby/3.3.0/tsort.rb:208:in `tsort_each'
from /gems/ruby/3.3.0/gems/railties-7.1.3.2/lib/rails/initializable.rb:60:in `run_initializers'
from /gems/ruby/3.3.0/gems/railties-7.1.3.2/lib/rails/application.rb:426:in `initialize!'
from /app/config/environment.rb:5:in `<main>'
from <internal:/usr/local/lib/ruby/site_ruby/3.3.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
from <internal:/usr/local/lib/ruby/site_ruby/3.3.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
from /gems/ruby/3.3.0/gems/bootsnap-1.17.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
from /gems/ruby/3.3.0/gems/zeitwerk-2.6.13/lib/zeitwerk/kernel.rb:34:in `require'
from /gems/ruby/3.3.0/gems/railties-7.1.3.2/lib/rails/application.rb:402:in `require_environment!'
from /gems/ruby/3.3.0/gems/railties-7.1.3.2/lib/rails/command/actions.rb:20:in `boot_application!'
from /gems/ruby/3.3.0/gems/railties-7.1.3.2/lib/rails/commands/console/console_command.rb:105:in `perform'
from /gems/ruby/3.3.0/gems/thor-1.3.1/lib/thor/command.rb:28:in `run'
from /gems/ruby/3.3.0/gems/thor-1.3.1/lib/thor/invocation.rb:127:in `invoke_command'
from /gems/ruby/3.3.0/gems/railties-7.1.3.2/lib/rails/command/base.rb:178:in `invoke_command'
from /gems/ruby/3.3.0/gems/thor-1.3.1/lib/thor.rb:527:in `dispatch'
from /gems/ruby/3.3.0/gems/railties-7.1.3.2/lib/rails/command/base.rb:73:in `perform'
from /gems/ruby/3.3.0/gems/railties-7.1.3.2/lib/rails/command.rb:71:in `block in invoke'
from /gems/ruby/3.3.0/gems/railties-7.1.3.2/lib/rails/command.rb:149:in `with_argv'
from /gems/ruby/3.3.0/gems/railties-7.1.3.2/lib/rails/command.rb:69:in `invoke'
from /gems/ruby/3.3.0/gems/railties-7.1.3.2/lib/rails/commands.rb:18:in `<main>'
from <internal:/usr/local/lib/ruby/site_ruby/3.3.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
from <internal:/usr/local/lib/ruby/site_ruby/3.3.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
from /gems/ruby/3.3.0/gems/bootsnap-1.17.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
from /app/bin/rails:4:in `<main>'
google-cloud-sql-v1attempts to include nonexistent files, which cause it to fail.There is no
google/cloud/sql/v1/sql_available_database_versions_service.rbin the gem, but there is insteadlib/google/cloud/sql/v1/cloud_sql_available_database_versions_service_pb.rbEnvironment details
0.1.0Steps to reproduce
google-cloud-sql-v1gem to projectCode example
Full backtrace