hdl/bazel_rules_hdl

Getting ready for bzlmod

Opened this issue · 7 comments

It would be good to get bazel_ruloes_hdl ready for bzlmod and add a MODULE.bazel.

https://bazel.build/external/migration

The oldest currently still maintained bazel 5 (and that can only work with old-school WORKSPACE ) is on the way out at the end of the year , bazel 6 allows to have bzlmod enabled and bazel 7 enables it by default.

Are there any updates here? I'm finding it very painful to use this with modules and would appreciate some guidance on the correct approach to do so in the interim.

I have done some experimenting over at main...hovind:bazel_rules_hdl:bzlmod/bazel-8, in case it is useful for anyone. bazelisk test ... passes, but it's far from "production quality".

Nice! I also started working on the first small steps towards it. But if you're working on it: do you plan to make a PR, @hovind ?

Nice! I also started working on the first small steps towards it. But if you're working on it: do you plan to make a PR, @hovind ?

I don't have any immediate plans to make a PR. I've had most of this code laying around since May 2024 to give you an idea of the lack of progress, it's just something I've dabbled in every now and then in my spare time to help myself learn a bit of bzlmod. Just thought I'd share in case it were useful to anyone. :)

ok. I'll start chipping away on it then with little PRs here and there.

ok. I'll start chipping away on it then with little PRs here and there.

That sounds like a good approach, I'm looking forward to following your progress!

Would it make sense to shard the repo up into smaller repositories and publish those as bzlmod modules first? The repo has quite a collection of tools in it. Maybe it would be easier to allocate time to publish things one at a time and ensure all the shared intermediates are available before tackling the larger parts of the repo.