You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A typical pack setup might include a test/ or spec/ directory which then might contain a app directory nested under it, eg test/app/models/foo_test.rb (since the test file is likely to start with require 'test_helper' this will then blow up at eager load time for example).
I assume the work around is to use the directory exclusions but it seems like the glob is pulling in too much.
Thanks for any thoughts!
The text was updated successfully, but these errors were encountered:
Hey all! Love the idea of this gem.
Ive been trying it out but it seems like any pack which uses
automatic_pack_namespace
will add any paths containingapp/
in them to autoload, due to the glob https://github.com/gap777/automatic_namespaces/blob/main/lib/automatic_namespaces/autoloader.rb#L26Just wondering if this is intentional?
A typical pack setup might include a
test/
orspec/
directory which then might contain aapp
directory nested under it, egtest/app/models/foo_test.rb
(since the test file is likely to start withrequire 'test_helper'
this will then blow up at eager load time for example).I assume the work around is to use the directory exclusions but it seems like the glob is pulling in too much.
Thanks for any thoughts!
The text was updated successfully, but these errors were encountered: