GithubHelp home page GithubHelp logo

Comments (5)

tomstuart avatar tomstuart commented on July 28, 2024

@lastgabs and I discussed this on the pod hangout and I suggested she try adding the in-repo gems to the load_paths in packwerk.yml and see what happens. She’s going to do that shortly and report back.

from packwerk.

tomstuart avatar tomstuart commented on July 28, 2024

(Maybe I should’ve suggested package_paths instead. The distinction is not very clear to me.)

from packwerk.

exterm avatar exterm commented on July 28, 2024

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.

from packwerk.

alexevanczuk avatar alexevanczuk commented on July 28, 2024

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!

from packwerk.

Mifrill avatar Mifrill commented on July 28, 2024

Hey, I just wanna ask for any updates on this.
I face it during the research for trying to enforce boundaries of external gem with package.yml config.
I.e. Gemfile includes any external gem and this gem has package.yml file with a public interface, and I want to enforce privacy violations for that external gem. I thought it possible via extension config, but it's not, and packwerk validate getting failed due to relative paths checks, even if I put explicitly absolute path to main package.yml file:

dependencies:
  - ../my_external_gems/my_gem

and packwerk update-todo also cannot catch violations from external gem as well, even with Zeitwerk::Loader.eager_load_all setup. So I think this issue is exactly about it (in terms of other dependencies). Is it in the plans?

from packwerk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.