Shopify/packwerk

NameError errror after running packwerk validate

oskygh opened this issue · 3 comments

Description
i am new to packwerk. I have modularized some parts of codebase into packages but run into a configuration error after running packwerk validate

To Reproduce

  1. Add packwerk to Gemfile
  2. bundle install
  3. run bundle binstub packwerk
  4. run packwerk init
  5. run packwerk validate

Actual Behaviour
I get an error indicating uninitialized constant #<Class:Packwerk::PackageSet>::Bundler (NameError)

Actual Behaviour
Run without a error

Version Information

  • Packwerk: v2.2.0
  • Ruby: v2.7.4

@oskygh have you solved the problem? If so, it might be worth posting the solution here so that other people running into the same problem can benefit from your work.

Okay sure @exterm. To also provide more context, the application was containerised. Running bin/packwerk validate instead of packwerk validate seems to solve the issue for me

👍🏼 thank you! That's expected behavior AFAICT, but this issue will still be useful for people googling for the error message.