-
Notifications
You must be signed in to change notification settings - Fork 442
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
Explicitly tracked lists of generated dependencies in MODULE.bazel #2368
Comments
cc @illicitonion @matts1 is this something that will be addressed soon? |
From #2314:
I didn't test this out - did you run into this? What happened? |
I don't have buildozer installed. I also don't think relying on buildozer is a good solution. I intended to update dependencies by running a |
I'm pretty sure Personally I'm ok to rely on buildozer... I think we could probably automate fetching/running buildozer as part of running But I'll let @matts1 chime in (and also cc @meteorcloudy and @Wyverald) |
The lack of |
In order to solve that issue, the only way to do it is to use the hub-and-spoke model, like I use in #1910. That also means you don't need to update the MODULE.bazel, so you don't need to use buildozer. Essentially, we would generate
Then instead of referring to Pretty sure that once someone implements proper vendored crates for bzlmod, we should get this for free. |
`bazel mod tidy` will now run at the end of any `crates_vendor` executions if the current workspace contains a `MODULE.bazel` file and the current Bazel version is greater than `7.0.0`. closes #2368
I just came across https://github.com/bazelbuild/rules_rust/blob/0.35.0/MODULE.bazel#L35-L124 and think this is a pretty egregious regression in maintainability for me. Any dependency here that's generated by a
crate_universe
rule needs to be updatable by the same rule or some other.bzl
file rendered to contain the appropriate list.The text was updated successfully, but these errors were encountered: