diff --git a/MODULE.bazel b/MODULE.bazel index 927a638b2..d1a2765b0 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -1,5 +1,5 @@ "A fast entity component system (ECS) for C & C++" -module(name = "flecs", version = "4.0.1") +module(name = "flecs") git_repository = use_repo_rule("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository") diff --git a/examples/build/bazel/README.md b/examples/build/bazel/README.md index 4a117275e..a29b39f5d 100644 --- a/examples/build/bazel/README.md +++ b/examples/build/bazel/README.md @@ -20,3 +20,29 @@ This directory contains a complete example of this usage. To try it you can run ``` bazel run //example ``` + +To keep your flecs dependency up to date with [Renovate](https://docs.renovatebot.com/) + CI, make sure to declare the version attribute of the `bazel_dep`. +Due to a bit of laziness, Renovate doesn't discover bzlmod dependencies without the `version` attribute. +The actual number doesn't matter, and it will create pull requests to update the commit. + +```bazel +bazel_dep(name = "flecs", version = "0.0.0") +git_override( + module_name = "flecs", + remote = "https://github.com/SanderMertens/flecs.git", + commit = "02c8c2666b22ccce5706c8f16efaf813704fe31e", +) +``` + +If you use a merge queue for managing CI, you can configure Renovate to automatically kick off your CI and automerge for the dependency update with the following in your `.github/renovate.json5` + +```json5 +{ + "extends": ["config:base"], + "dependencyDashboard": true, + + "automerge": true, + "automergeType": "pr-comment", // have Renovate leave a comment to kick off CI + merge + "automergeComment": "/trunk merge" // the comment to leave +} +``` \ No newline at end of file