chore: bump local verison of bazel used to 4.1.0 (#616)

diff --git a/.bazelversion b/.bazelversion
index fcdb2e1..af8c8ec 100644
--- a/.bazelversion
+++ b/.bazelversion
@@ -1 +1 @@
-4.0.0
+4.2.2
diff --git a/examples/build_file_generation/.bazelversion b/examples/build_file_generation/.bazelversion
index fcdb2e1..af8c8ec 100644
--- a/examples/build_file_generation/.bazelversion
+++ b/examples/build_file_generation/.bazelversion
@@ -1 +1 @@
-4.0.0
+4.2.2
diff --git a/version.bzl b/version.bzl
index bc1ccdf..8f59f1c 100644
--- a/version.bzl
+++ b/version.bzl
@@ -15,10 +15,10 @@
 
 # Currently used Bazel version. This version is what the rules here are tested
 # against.
-# This version should be updated together with the version of the Bazel
+# This version should be updated together with the version of Bazel
 # in .bazelversion.
 # TODO(alexeagle): assert this is the case in a test
-BAZEL_VERSION = "4.0.0"
+BAZEL_VERSION = "4.2.2"
 
 # Versions of Bazel which users should be able to use.
 # Ensures we don't break backwards-compatibility,