Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

Checking out missing git repos (but not being installed) - Fixing #3981 #4357

Merged
merged 4 commits into from
Mar 16, 2016

Conversation

asutoshpalai
Copy link
Contributor

Fixes #3981.

As far as I investigated the problem is, being in without group, it is not marked in missing_spec and so it is not resolved while resolving specs at https://github.com/bundler/bundler/blob/master/lib/bundler/installer.rb#L183
and https://github.com/bundler/bundler/blob/master/lib/bundler/installer.rb#L195
but it is in the definition's index at
https://github.com/bundler/bundler/blob/master/lib/bundler/definition.rb#L209
leading to
https://github.com/bundler/bundler/blob/master/lib/bundler/source/git.rb#L150
where it checks for the presence of the folder at
https://github.com/bundler/bundler/blob/master/lib/bundler/source/path.rb#L135

Possible solutions are :

  • add it to the list of missing_specs
  • check while building the index in Definition class and don't add it.

@asutoshpalai asutoshpalai changed the title Checking out git repos missing but not being installed Fixing #3981 Checking out git repos missing but not being installed (Fixing #3981) Mar 11, 2016
@asutoshpalai asutoshpalai changed the title Checking out git repos missing but not being installed (Fixing #3981) Checking out missing git repos but not being installed (Fixing #3981) Mar 11, 2016
@asutoshpalai asutoshpalai changed the title Checking out missing git repos but not being installed (Fixing #3981) Checking out missing git repos (but not being installed) - Fixing #3981 Mar 11, 2016
@@ -14,5 +14,30 @@
expect(out).to include("Using foo 1.0 from #{lib_path("foo")} (at master@#{revision_for(lib_path("foo"))[0..6]})")
should_be_installed "foo 1.0"
end

it "should check out git repos that are missing but not being installed" do
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you please also test that the repo is being checked out?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is checking that the directory is present enough?
I added that.

@segiddins
Copy link
Member

@homu r+

@homu
Copy link
Contributor

homu commented Mar 16, 2016

📌 Commit b3a527f has been approved by segiddins

@homu
Copy link
Contributor

homu commented Mar 16, 2016

⚡ Test exempted - status

@homu homu merged commit b3a527f into rubygems:master Mar 16, 2016
homu added a commit that referenced this pull request Mar 16, 2016
Checking out missing git repos (but not being installed) - Fixing #3981

Fixes #3981.

As far as I investigated the problem is, being in `without` group, it is not marked in missing_spec and so it is not resolved while resolving specs at https://github.com/bundler/bundler/blob/master/lib/bundler/installer.rb#L183
and https://github.com/bundler/bundler/blob/master/lib/bundler/installer.rb#L195
but it is in the definition's index at
https://github.com/bundler/bundler/blob/master/lib/bundler/definition.rb#L209
leading to
https://github.com/bundler/bundler/blob/master/lib/bundler/source/git.rb#L150
where it checks for the presence of the folder at
https://github.com/bundler/bundler/blob/master/lib/bundler/source/path.rb#L135

Possible solutions are :
- add it to the list of missing_specs
- check while building the index in Definition class and don't add it.
@coilysiren coilysiren modified the milestone: Release Archive Sep 22, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bundle install with path and excluding a group fails when Gemfile.lock is present.
4 participants