Skip to content

bundle install --local in test tries to contact remote #185

@marcotc

Description

@marcotc

While implementing #184, I noticed that appraisal tests (invoking rake in this repository) were failing.

At first they were failing with the issue addressed by #184, but after fixing that there's still one more test failing:

[DEPRECATED] The --binstubs option will be removed in favor of `bundle binstubs --all`
Could not reach host other-rubygems.org. Check your network connection and try
again.

RuntimeError:           Command "bundle install --local" exited with status 17. Output:
            Fetching ../gems/croissant
Fetching ../gems/egg
Fetching ../gems/omelette

  1) Appraisals file Bundler DSL compatibility supports all Bundler DSL in Appraisals file
     Failure/Error:
       raise RuntimeError, <<-error_message.strip_heredoc
         Command #{command.inspect} exited with status #{exitstatus}. Output:
         #{output.gsub(/^/, '  ')}
       error_message

     RuntimeError:
                 Command "bundle install --local" exited with status 17. Output:
                   Fetching ../gems/croissant
       Fetching ../gems/egg
       Fetching ../gems/omelette
     # ./spec/support/acceptance_test_helpers.rb:162:in `block (2 levels) in run'
     # ./spec/support/acceptance_test_helpers.rb:154:in `tap'
     # ./spec/support/acceptance_test_helpers.rb:154:in `block in run'
     # ./spec/support/acceptance_test_helpers.rb:149:in `chdir'
     # ./spec/support/acceptance_test_helpers.rb:149:in `in_test_directory'
     # ./spec/support/acceptance_test_helpers.rb:153:in `run'
     # ./spec/acceptance/appraisals_file_bundler_dsl_compatibility_spec.rb:84:in `block (2 levels) in <top (required)>'

This errors happens only with newer versions of bundler.

After bisecting the bundler changes, I found that ruby/rubygems@d8b59a1 introduces the behaviour makes this test fail (which was released with bundler 2.2.14).

It seems like bundle install --local wants to contact other-rubygems.org, which doesn't seem right.
When using a version of bundler from before ruby/rubygems@d8b59a1, it does not try to contact the remote.

I wasn't able to decipher what part of ruby/rubygems@d8b59a1 is the culprit, or if the issue is in appraisal or in bundler itself. I'm opening the issue here as this is manifested in one of the tests in the repository.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions