Comments (4)
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.
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.
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.
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)
- Gazelle gets confused if directories already contain both BUILD and .pb.go files
- Gazelle extremely slow with MODULE.bazel and kubernetes
- Tables in the documentation are difficult to read HOT 2
- Expose bazel_deps to go_deps extension HOT 1
- new gazelle v0.36.0 fails with Go sum mismatches HOT 10
- go.mod FilePath ReplaceDirective is missing when using the go-deps bzlmod extension HOT 1
- gazelle_binary fails nogo linting
- 'invalid use of internal package' in IDE in external tests HOT 4
- Failing to upgrade to gazelle 0.36 HOT 1
- Gazelle ignores several GIT_CONFIG environment variables
- Gazelle fails on macOS when using `apple_support` and go version 1.22+ HOT 7
- Cyclical Indirect Dependencies & Go.work can cause divergence HOT 1
- Add support for generated files in gazelle HOT 1
- Gazelle should extract module mappings from imported foo.MODULE.bazel files
- Passing debug_mode via go_deps to go_repository is not supported HOT 2
- Latest gazelle breaks grpc/grpc HOT 5
- Gazelle crashes in repository with MODULE but no WORKSPACE HOT 2
- `go_repository_cache` repository rule doesn't handle MacOS arm64 platform HOT 2
- How to create go_proto_library automatically
- Optimize Gazelle's filesystem walk
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bazel-gazelle.