Creating Multiple Pack Directories in Packwerk/Stimpack

This message was imported from the Ruby/Rails Modularity Slack server. Find more info in the import thread.

Packwerk/Stimpack Q:

What would it take to have multiple pack directories?

I can already rename packs => packages, which is cool.

But I really want to separate:

components
subsystems

Any thoughts on how to make that happen?

Message originally sent by slack user U717FXJ8HWK

I don’t think Stimpack currently allows having multiple root directories for packages, closest thing I can think of would be nesting both under some name:

packages/components/
packages/subsystems/

Message originally sent by slack user U717FXJ8HWK

Related: https://github.com/rubyatscale/stimpack/issues/11

<@U717FXJ8HWK> That seems sufficient, but is there a way I can avoid having the namespace also be nested for these non-engine packs? Instead of Components::Foo::Class1 I want just Foo::Class1 . I see that you did something related to this for packs+engines… why is it limited to engines?

<@U717FXJ8HWK> Actually, moving things under packs/components doesn’t seem to work at all (with any namespace). I’m using Stimpack 0.7

Rolled back to v0.6, and I see the behavior you’re suggesting. Seems like this may be broken, or the way of invoking it has changed, in 0.7+