-
Notifications
You must be signed in to change notification settings - Fork 124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Could not find nokogiri (1.11.4) in any sources #362
Comments
@tommeier 👋 can you provide a repro project or gemfile so I can take a better look at whats going on? 🙇 The bundler source went through some significant changes 2.x.x -> 3.x.x so I'm not terribly surprised to see some things like this pop up |
hi @jonabc , Well - I'd love too... 😆 I'm just for some reason unable too. Completely baffled. In our (albeit gigantic monolith) project, I get this every time with the root
WIth the most simple
However, on a clean seperate project (same bundler On our project root:
On a clean repo with the same gemfile + licensed.yml:
I have absolutely no idea why, however I've proven its PEBKAC somewhere in our monolith, somehow - will keep looking 👓 |
For the "keep looking" aspect, is there any custom configuration to either ruby or bundler in the original project? Please do feel free to reopen this if you find out what's going on and there's something to fix in this project 🙇 |
@tommeier have you found what was causing the problem and fix for it? I'm experiencing the same in our project. |
Just found that after upgrading bundler from version 2.2.15 to version 2.2.21 the problem is gone. |
@bblimke alas I never did, we don't appear to be doing anything fancy, not with ruby, bundler v2.2.26 the issue remains for our |
@tommeier 👋 do you mean to say that you're still having issues here and the bug hasn't been resolved for you? A few followup questions
Generally, I've found that the "could not find * in any sources" for bundler gems that build native dependencies (like nokogiri) comes from running licensed in a different OS type than was used for bundler to install dependencies. As an example, you might see this if you're running |
@jonabc 👋 unfortunately not yet, spotted the update on latest bundler and unfortunately, weirdly same issue.
|
@tommeier I'm going to reopen this since you're still seeing the problem. I misread your earlier comment and thought the problem was resolved in your project. Some more questions for the environment setup
|
Hi @jonabc,
Which is being brought in by Getting the error in both our sub gemfiles and the version is different following recent updates (via
In the
Is bringing in the expected 1.12.3:
In the native sub path, its being brought in by a few deps like
So yup - verified the non-nested reference is present for both. Using
|
@tommeier thats great info. I'm going to try for a reproduction case and let you know if there are any other questions. Thanks! |
still no luck 😢 . I put together a reproduction as close to the above information as I could and would you mind sharing the below information? feel free to redact any sensitive information, however the more information you're able to share the easier figuring out what's going on will be
licensed primarily relies on bundler to source information about each dependency, including the dependency's installed location on disk. broadly speaking, bundler works by modifying the gem environment based on a default configuration combined with user-configured local, user, and global level. it's possible that there is something unique to your bundler configuration or the changes that bundler makes to your local gem environment that are causing the problem. |
@jonabc will email you the deets! |
@tommeier thanks for the reproduction details 🙇 . I was able to reproduce the issue, but it was an unexpected challenge to do so 😂 ! I'm still trying to figure out exactly what's going on or how to fix it, but I was able to make the failure happen for the native subproject by installing everything, changing the platform in Gemfile.lock I'm looking into a fix on the licensed side of things, hopefully it won't be anything too complicated. I haven't found a workaround at the moment that you could use on your local environment to get things passing short of moving off of the |
👋 I opened #392 as a fix, which I verified fixed the problem on my local reproduction ☝️ . I'm going to let that sit for a few days and review it with fresh eyes because the interaction of the source enumerator with bundler's internal object model has been a love/hate relationship over the years and I'm just a bit wary 😆 Anyway, at least the problem has been identified now and has a potential solution 👍 . Thanks for all your help in tracking this down. |
brilliant! thanks @jonabc - will test tomorrow morning! |
confirmed! Works perfectly with no issues - thank you!! 👏 |
Licensed 3.2.1 is released that includes this fix |
Hi, all I have the same problem, but our daily CI build failed after licensed upgraded to 3.2.1. |
on:
v3.0.1
Is working with same Gemfile on
2.14.4
The text was updated successfully, but these errors were encountered: