-
Notifications
You must be signed in to change notification settings - Fork 116
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
Make Packwerk work in in-repo gems and other dependencies #47
Comments
@lastgabs and I discussed this on the pod hangout and I suggested she try adding the in-repo gems to the |
(Maybe I should’ve suggested |
I investigated how to decouple from zeitwerk and documented the findings in Shopify/constant_resolver#26. Seems actually like using Sorbet is the best bet, but that would be a major rewrite of packwerk. Might still make sense at some point. |
This is an older issue but also wanted to link #218 which provides an implementation for and interesting discussion around allowing packwerk to work in any gems that use zeitwerk for autoloading! |
Hey, I just wanna ask for any updates on this. dependencies:
- ../my_external_gems/my_gem and |
Description
Currently Packwerk can only check constant references that are being autoloaded. This excludes any dependencies and in-repo gems that could exist in a codebase. Especially for in-repo gems we have a strong need for boundary checking.
To Reproduce
Add a package.yml with enforced privacy or dependency violations and run
packwerk update
orpackwerk check
, neither of these will work for non-autoloaded packages.Expected Behaviour
Dependencies and other packages that are not autoloaded should still have boundaries enforced.
Version Information
The text was updated successfully, but these errors were encountered: