Commit Graph

10 Commits

Author SHA1 Message Date
Michael Kriese 4d2d86f902 fix(bazel-module,bazelisk): add allowedUnsafeExecutions for bazel mod deps (#42323)
* fix(bazel-module,bazelisk): add `allowedUnsafeExecutions` for `bazel mod deps`

* docs: update manager readmes
2026-04-02 08:01:53 +00:00
Tim Tran 2f71422620 feat(bazel-module,bazelisk): add lock files updating (#41507)
* feat(exec): register bazelisk as containerbase tool

* test(bazel-module): add failing tests for updateArtifacts

* feat(bazel-module): implement updateArtifacts for lockfile support

* feat(bazel-module): export updateArtifacts from manager index

* fix(bazel-module): address code review feedback

- Use logger.warn instead of debug for artifact errors
- Add utf8 encoding to readLocalFile calls
- Use getSiblingFileName for lockfile path derivation
- Add empty updatedDeps guard
- Strengthen test assertions

* docs(bazel-module): document lockfile support

* Update lib/modules/manager/bazel-module/index.ts

Co-authored-by: Michael Kriese <michael.kriese@gmx.de>

* Apply suggestions from code review

Co-authored-by: Michael Kriese <michael.kriese@gmx.de>

* fix(bazel-module): address review feedback

- Remove unnecessary afterEach in tests
- Use partial<StatusResult> for all StatusResult mocks
- Add lockfile maintenance support
- Export supportsLockFileMaintenance flag

* fix(bazel-module): handle untracked lock files and clarify docs

Check status.not_added alongside status.modified for lock file changes,
matching the pattern used by other managers (composer, gomod, etc.).
Clarify that Bazelisk (not Renovate) reads .bazelversion. Add test for
lockfile maintenance with no changes.

* feat(bazelisk): implement updateArtifacts for MODULE.bazel.lock

When the Bazel version in .bazelversion changes, run `bazel mod deps` to
regenerate MODULE.bazel.lock and return the updated lockfile as an artifact.

* feat(bazelisk): add lockfile maintenance support

* docs(bazelisk): add lockfile support section linking to bazel-module docs

* refactor(bazel-module): extract shared lockfile update helper

* refactor(bazel-module): delegate lockfile update to shared helper

Replace inline lockfile update logic in artifacts.ts with a call to the
shared updateBazelLockfile() helper, and update tests to mock the helper.

* refactor(bazelisk): delegate lockfile update to shared helper

Replace inline lockfile update logic in bazelisk/artifacts.ts with a
call to the shared updateBazelLockfile() helper from bazel-module/lockfile.ts.

* fix(bazelisk): use index.md for cross-manager docs link

The docs pipeline renames readme.md to index.md, so cross-manager
links must reference index.md to pass the docs link checker.

* feat(bazel-module,bazelisk): support bazelisk version constraint

Pass config.constraints.bazelisk through to toolConstraints so users
can pin the bazelisk version if the newest release is broken.

* fix(bazel-module): rename lockFile to fileName in ArtifactError

Upstream renamed lockFile to fileName in ArtifactError type (#41631).

---------

Co-authored-by: Michael Kriese <michael.kriese@gmx.de>
2026-03-12 16:40:24 +00:00
Clément Guillot eb255744d4 feat(bazel-module): add Crate dependency extraction (#40393)
* feat(bazel-module): add Crate dependency extraction

* feat(bazel-module): use `crate` versioning when building package dependencies

* feat(bazel-module): use `crate` versioning when building package dependencies

* feat(bazel-module): fix zod import path

* feat(bazel-module): remove explicit `versioning`
2026-03-09 13:18:09 +00:00
Malte Poll b03b944b73 feat(bazel-module): Add support for rules_img use_repo_rule (#37984)
* feat(bazel-module): Add support for rules_img use_repo_rule

* feat(bazel-module): Set registryUrls for rules_img repo rule

* feat(bazel-module): Only set registryUrls on non-empty repository
2025-09-30 23:08:24 +00:00
Rhys Arkins 3da3ca9d17 fix(bazel-module): Revert "feat(bazel-module): Add support for rules_img" (#37501) 2025-08-14 07:32:37 +00:00
Malte Poll 420db001b6 feat(bazel-module): Add support for rules_img (#37429) 2025-08-12 08:24:43 +00:00
Tobias Schlatter 22d356b9b1 feat(bazel-module): add support for oci.pull (#32453)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2024-12-05 16:26:35 +00:00
Aleksei Babich 49b7e1fc82 feat(bazel-module): Add support of maven methods (#30884)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2024-08-22 13:15:51 +00:00
Chuck Grindel 4ae9fffff1 docs: remove obsolete WIP message for bazel-module manager (#23024) 2023-06-28 14:42:57 +00:00
Chuck Grindel 7a1d24209c feat: initial implementation of bazel-module manager (#21893) 2023-05-20 05:34:30 +00:00