Code Monkey home page Code Monkey logo

Comments (4)

fmeum avatar fmeum commented on June 12, 2024

Gazelle brings in this repo via its gazelle_dependencies macro. Since you call gazelle_dependencies in your WORKSPACE file after you instantiate your own version of org_golang_x_mod, but without a load statement in between, Gazelle's definition wins and your definition is ignored.

Could you try moving the load statement for gazelle_dependencies further down?

The true fix for these problems is adopting Bzlmod.

from bazel-gazelle.

filmil avatar filmil commented on June 12, 2024

Turns out, I had to uncomment my use of @org_golang_x_mod to make everything work. Moving the declarations around did nothing, the two uses were simply conflicting.
(now I also need to figure out how to persuade gazelle not to reinsert the repo onrepo-update)

As for bzlmod, how do I effectively use it when there are only about 150 packages that have their bzlmod declared? What of all the other deps that haven't migrated yet?

from bazel-gazelle.

fmeum avatar fmeum commented on June 12, 2024

Sure, if a dep hasn't migrated yet, it would need to be added to the registry first. But is there any particular dep that you are missing? Based on a quick look at your repo, it looks like all the deps are there.

I will close this as the original issue has been resolved.

from bazel-gazelle.

filmil avatar filmil commented on June 12, 2024

Where I worry, is a dependency that wants to pull in an entire universe of other deps. It's not obvious to me how one can easily migrate to bazel modules. This is especially true for projects that already resort to magical dances to ensure that conflicting dependencies are resolved.

from bazel-gazelle.

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.