-
Notifications
You must be signed in to change notification settings - Fork 461
chore(bazel): move capnp dep to bzlmod #5357
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
base: main
Are you sure you want to change the base?
Conversation
|
The generated output of |
Yeah, if we can do it easily, I'm looking forward to a PR doing so 😄 – we often rely on updating capnproto quickly, and developers should only have to learn a new approach for updating capnproto once, so moving it when we have that set up would be best. |
|
Can you give me an idea of what command users would want? Still |
For now keeping the change transparent by keeping it within update-deps.py might be the most straightforward, although making it go through something else is fine if we document it properly. |
pre-factoring for --noenable_workspace and Bazel 9
6a6246d to
847fa9f
Compare
|
@fhanau okay, I've never used the update_deps.py script and don't want to spend much time reverse-engineering the command line API. I added a trivial script Could you pick this up and adjust to the CLI you think your users prefer? Note that AFAIK your dev environment doesn't currently include buildozer. I recommend https://github.com/buildbuddy-io/bazel_env.bzl is the best way to add that, and will send a PR to add it if you like. If you have a different way of managing developer's environments then add it there? |
I'll try to take a look tomorrow. @mikea has the most context on the update-deps script, he might have good ideas here too. |
|
Interesting single failure currently: Somehow this wasn't tickled when it was imported via WORKSPACE rather than bzlmod... |
That's due to the mangled repo name – we set |
under bzlmod you can't assume a given path to external/ repo
CodSpeed Performance ReportMerging #5357 will degrade performances by 25.6%Comparing Summary
Benchmarks breakdown
Footnotes
|
|
I'm happy to work more on this script, could we land this one since it's green? @mikea let's chat on Slack about the design of the script, I think you simply want to advance to HEAD of v2 branch regularly? |
pre-factoring for --noenable_workspace and Bazel 9
@fhanau I think you'll tell me that there's a dev workflow for updating the json file here which is load-bearing. We can script around buildozer to easily update the MODULE file with a lot less complexity.