Comments (5)
Unfortunately, I don't have any insight here. The LoadError
you are seeing is for the correct path (rodauth/features/become_account
), so it isn't attempting to load the wrong path and failing. The only thing I can think of is the rodauth-become_account
gem lib
directory is not in the ruby load path at the point the require is made. Maybe it's due to the combination of bootsnap
and zeitwerk
?
As you suspected, it isn't a bug in Roda, so I'll close this. However, if you find out more regarding the cause, I'd be interested.
from roda.
One root of the issue (or perhaps better stated as the reason this issue became apparent) is the non-conformity of the plugin to bundler/rubygems standards for the default entry-point load files:
A normal entry point for this gem name, IIRC, would have been lib/rodauth/become_account.rb
, but also, the path being attempted is the path in the screenshot, so the right thing is being attempted, and it is unclear how it is failing.
from roda.
Also, very interesting to note that (timestamps removed):
<internal:/usr/local/lib/ruby/site_ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require': cannot load such file -- rodauth/features/become_account (LoadError)
from <internal:/usr/local/lib/ruby/site_ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
from /apps/my_app/vendor/bundle/ruby/3.2.0/gems/bootsnap-1.18.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:27:in `require'
from /apps/my_app/vendor/bundle/ruby/3.2.0/gems/zeitwerk-2.6.13/lib/zeitwerk/kernel.rb:34:in `require'
from /apps/my_app/vendor/bundle/ruby/3.2.0/gems/rodauth-2.34.0/lib/rodauth.rb:354:in `load_feature'
rodauth
is doing load_feature
, which calls require
, and this is hijacked by both zeitwerk
, and bootsnap
, and it ends up failing!
from roda.
The only thing I can think of is the rodauth-become_account gem lib directory is not in the ruby load path at the point the require is made
My deepest fear is that my dependencies are not deterministically loaded into my published Docker images... Really hoping that isn't the case, but I'm working with an extremely legacy build incantation that still uses "eye of newt" as an ingredient.
from roda.
My deepest fear was true. Sorry for the waste of time!
from roda.
Related Issues (20)
- Envrionments plugin: provide instance methods too? HOT 1
- How can i load coffeescript in roda HOT 2
- How to use common_logger plugin to log information in routes implementation or in specs or other place in the application? HOT 6
- [feature request] Make the view method (from the render plugin) accept a block like the render method does HOT 1
- route_csrf incompatible with rack-protection authenticity token checks HOT 5
- Unfork HOT 3
- env['rack.errors'] parsed as a link in common_logger plugin documentation HOT 2
- String matcher in hash_routes combined with unescape_path does not match non-ascii strings HOT 1
- [Documentation / Question] Request for a FAQ for experienced sinatra users HOT 1
- Raises "Unsupported block result" when using Unreloader and json plugin HOT 2
- On app startup. Getting message > Rack::Handler is deprecated and replaced by Rackup::Handler HOT 2
- Not compatible with Haml >= 6 HOT 2
- URI Unicode handling HOT 6
- Duplicating Content-Type header when header key comes in lowercase HOT 3
- json plugin does not support FalseClass and String anymore HOT 1
- Can gRPC services and clients be integrated?
- Unicode escapes not decoded in path HOT 3
- Sanitize params when using plugin `error_mail` HOT 2
- Missing rackup on clean install HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from roda.