Commit Graph

14 Commits

Author SHA1 Message Date
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
Mark Reuter 4ca76e40b5 feat(bazel-module): support bazel_dep dependencies without the version parameter (#33496)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
Co-authored-by: Michael Kriese <michael.kriese@gmx.de>
2025-01-30 12:11:53 +00:00
Mark Reuter f97189c600 feat(bazel-module): Support git_repository (#33415) 2025-01-08 12:34:19 +00:00
HonkingGoose b58322920c docs: use titles for more code blocks (#25526) 2023-11-02 16:04:33 +00:00
Zak Cutner da7fbc0223 feat(manager/bazel): recognize Bazel rules that begin with an underscore (#24496)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2023-09-20 07:03:58 +00:00
HonkingGoose 76c9c63417 docs: use simple words (#23989) 2023-08-22 14:07:21 +02:00
Chuck Grindel 8131b43304 feat: update bazel documentation and enable bazel-module manager (#22803)
Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
2023-06-16 19:27:39 +00:00
Malte Poll 480cff54ff feat(bazel): Support for rules_oci / oci_pull (#21216)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2023-03-30 20:37:52 +00:00
Sergei Zharinov 9ec4804579 feat(bazel): Use Gradle versioning for maven_install by default (#20748) 2023-03-04 10:32:38 +00:00
HonkingGoose 5a52b04c96 docs: replace contain(s) with has or have (#14692) 2022-03-16 14:50:20 +01:00
HonkingGoose 3cda8a5a58 docs: improve Bazel documentation (#7754) 2020-11-18 13:52:55 +01:00
HonkingGoose 89346338cb docs: fix capitalization/style errors (#7532)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2020-10-23 17:42:57 +02:00
Will Maier 66c143c6eb feat(bazel): support http_file (#6844) 2020-07-24 09:28:40 +02:00
Rhys Arkins 8e97958dd1 docs: relocate website docs 2019-09-09 04:28:25 +02:00