Comments (5)
Slack context: https://bazelbuild.slack.com/archives/C014RARENH0/p1711483035156299?thread_ts=1711392090.732839&cid=C014RARENH0
from bazel.
Sorry for the long delay. In the README of your repro, you said:
This repository shows
bazel_dep(name = "aspect_bazel_lib", version = "2.3.0", repo_name = "foobar")
in MODULE.bazel NOT shadowing theaspect_bazel_lib
loaded byrules_js
viarules_js_dependencies()
in WORKSPACE.
But that's expected behavior. This dep would shadow a repo called foobar
loaded in WORKSPACE. If you remove the repo_name="foobar"
part, it would correctly shadow anything called aspect_bazel_lib
.
from bazel.
But that's expected behavior. This dep would shadow a repo called
foobar
loaded in WORKSPACE
That also does not work. See the protobuf example in the issue description.
from bazel.
But that's expected behavior. This dep would shadow a repo called
foobar
loaded in WORKSPACEThat also does not work. See the protobuf example in the issue description.
That would be unexpected. Do you have a repro for that?
from bazel.
There are various cases where shadowing is required. When legacy non-bzlmod loads a repository we need a reliable way to ensure that it can be shadowed by bzlmod modules.
http_archive(name)
may need to be shadowed bybazel_dep(name)
, this seems to workhttp_archive(name)
may need to be shadowed bybazel_dep(repo_name)
, this seems brokenhttp_archive(name)
may need to be shadowed bybazel_dep(name)
while I want to userepo_name
for my local repo
The first seems to work, the protobuf issue is 2, and I guess my repo showed 3.
I'll try adding a case for 2 in my repo but I'm having trouble creating a simple one, I've only had the issue in fairly large repos.
from bazel.
Related Issues (20)
- [Mirror] golang/tools v0.20.0 HOT 1
- [Mirror] rules_go v0.47.0 HOT 1
- [7.2.0] Always create an empty MODULE.bazel for python tests HOT 2
- Bazel HEAD broke rules_apple dynamic framework linking HOT 4
- [7.2.0] Revert special handling of yanked module files HOT 3
- [7.2.0] Only check for shard status file if a test passed
- Allow reading from constraints and config settings via providers
- Upgrade root module MVS not matching from warning to error HOT 5
- bazel fails with Failed to parse downloader config
- Java: overriding getter on a record results in "reference to <getter> is ambiguous HOT 1
- [7.2.0] Handle file type changes with in-process symlink creation HOT 1
- [7.2.0] Replace most Bzlmod events with a Skyframe graph lookup HOT 4
- Add SLSA provenance to your releases
- Turbine crashes on certain `sealed` usages HOT 2
- Poor error message when overriding BCR to invalid path HOT 2
- [Bazel CI] SyntaxTests are failing at Bazel@HEAD HOT 1
- [7.2.0] Allow `native.package_relative_label` in initializers
- `--incompatible_sandbox_hermetic_tmp` breaks virtual includes if using output base under `/tmp` HOT 1
- Repository rules should not re-fetch when .netrc changes HOT 1
- Build failing on remote cache problems unexpectedly HOT 8
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.