-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Unable to find gem on remote #5089
Comments
/cc @segiddins here is the ticket that goes with the branch with the failing spec 👍 |
is this the one you mentioned where the GEM_PATH plays a role in the problem? |
@chrismo yup! as shown in the test, if |
(The reason that setting GEM_PATH "fixed" the bug is that it meant Bundler could no longer see the already-installed copy of |
and this is broken on master? do you know what released versions this works with / fails with? and ... double-checking ... yeah, this code is put back the way it was: https://github.com/bundler/bundler/blob/aa-missing-specs/lib/bundler.rb#L496 - so probably not that. |
According to |
So somehow... all 1.8.x releases, and the |
I have a one-line fix for this that proves my suspicion about this being pre-release related 😝 |
[Index] Allow pre-release versions in search when the base is pre-release Closes #5089
[Index] Allow pre-release versions in search when the base is pre-release Closes #5089
This is a kind of weird and specific situation:
If, and only if, some version of a gem is installed into system gems
(e.g. rack 1.0), then trying to resolve a different version of that gem
from a specific remote source (e.g. rack 2.0.1.1.forked) will fail, even
though that gem is in fact available from that soure. Uninstalling the
unrelated version of rack from system gems completely solves this
problem. Alternately, running
bundle update rack
instead ofbundle install
also completely solves this problem.From this I speculate that we are unfairly withholding the rack
2.0.1.1.forked spec from the resolver, even though it was provided by
the source.
I have written a failing spec, available in the branch named aa-missing-specs.
Update: after looking in to the problem at a bit more length, it seems that we are in fact supplying the relevant specs to the resolver. Here's some debug output that might help point to the problem. Maybe.
Failing case debug output
Success case debug output
The text was updated successfully, but these errors were encountered: