This repository contains assorted common functionality for Google's open-source
libraries that are built with bazel
. It is an experimental project and none
of the APIs/target names are fixed/guaranteed to remain. You are welcome to use
it and offer feedback at your own risk.
This is not an official Google product.
-
Choose the commit hash you want to use.
-
Add the following to your
MODULE.bazel
file, replacing_COMMIT_
with the commit hash.bazel_dep(name = "google_bazel_common") git_override( module_name = "google_bazel_common", commit = "_COMMIT_", remote = "https://github.com/google/bazel-common", )
To update the version of Bazel Common, choose a new commit and update your
MODULE.bazel
file.
-
Open
MODULE.bazel
-
Find the maven coordinate of the library export that you want to increment
-
Update the version number in the maven coordinate
-
Update the
maven_install.json
file by running:REPIN=1 bazelisk run @google_bazel_common_maven//:pin
-
Send the change for review.
-
Once submitted, remember to update your own dep on
bazel_common
to the version containing your change.