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

NameError errror after running packwerk validate #204

Closed
oskygh opened this issue Jun 10, 2022 · 3 comments
Closed

NameError errror after running packwerk validate #204

oskygh opened this issue Jun 10, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@oskygh
Copy link

oskygh commented Jun 10, 2022

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 oskygh added the bug Something isn't working label Jun 10, 2022
@oskygh oskygh closed this as completed Jun 13, 2022
@exterm
Copy link
Contributor

exterm commented Jun 13, 2022

@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.

@oskygh
Copy link
Author

oskygh commented Jun 13, 2022

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

@oskygh oskygh reopened this Jun 13, 2022
@exterm
Copy link
Contributor

exterm commented Jun 17, 2022

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

@exterm exterm closed this as completed Jun 17, 2022
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

2 participants