Skip to content
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

[Issue Report] Lack of information about packages that are located outside the/app folder #403

Closed
mwroblewskisamsung opened this issue Apr 22, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@mwroblewskisamsung
Copy link

mwroblewskisamsung commented Apr 22, 2024

Description
Missing instructions for properly configuring the structure of automatic path loading for packages located outside the /app folder.

Example:

rails-app/packs/components/app/model/...
rails-app/packs/components/app/public/...
rails-app/packs/components/package.yml

How to resolve:
Add config.paths.add 'packs', glob: '*/app/*', eager_load: true to application.rb

@mwroblewskisamsung mwroblewskisamsung added the bug Something isn't working label Apr 22, 2024
@exterm
Copy link
Contributor

exterm commented Apr 30, 2024

This is not an issue with Packwerk. Packwerk will respect any autoload paths you have set up. If your application works, packwerk will work.

However, to give you some help - it seems that you are using https://github.com/rubyatscale/packs ? In which case you most likely will want to use https://github.com/rubyatscale/packs-rails too. Note however that those are separate projects that are not used by Shopify. Shopify uses engines to set up autoload paths, see #361.

@rafaelfranca rafaelfranca closed this as not planned Won't fix, can't repro, duplicate, stale May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants