Skip to content

Migrate to Bzlmod #47

@hartikainen

Description

@hartikainen

As noted in the Bazel documentation:

Bzlmod will replace the legacy WORKSPACE system. The WORKSPACE file is already disabled in Bazel 8 (late 2024) and will be removed in Bazel 9 (late 2025).

It would be nice to migrate the examples and other code to use Bzlmod. This should be trivial to do at least for the examples. For example, for the local_arg_printer example, just replacing WORKSPACE with the following MODULE.bazel should work:

module(
    name = "xmanager_local_arg_printer_example",
    version = "1.0",
)

bazel_dep(name = "rules_cc", version = "0.1.2")

I would expect there to not be many changes needed from the core code either, but I think e.g. #46 might be related.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions