workspace: update rules_go to v0.46.0, go to v1.22.1

Go 1.22 changes the way loops are handled by allocating a seperate chunk
of memory for each iteration to mitigate typical misuse with goroutines
and pointers.

Change-Id: I9206ce71add53dcf4e7edb0fab3aef926d186742
Reviewed-on: https://review.monogon.dev/c/monogon/+/2910
Tested-by: Jenkins CI
Reviewed-by: Lorenz Brun <lorenz@monogon.tech>
diff --git a/WORKSPACE b/WORKSPACE
index 3b4d445..bc39dd5 100644
--- a/WORKSPACE
+++ b/WORKSPACE
@@ -25,10 +25,10 @@
     patches = [
         "//third_party/go/patches:rules_go_absolute_embedsrc.patch",
     ],
-    sha256 = "de7974538c31f76658e0d333086c69efdf6679dbc6a466ac29e65434bf47076d",
+    sha256 = "80a98277ad1311dacd837f9b16db62887702e9f1d1c4c9f796d0121a46c8e184",
     urls = [
-        "https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.45.0/rules_go-v0.45.0.zip",
-        "https://github.com/bazelbuild/rules_go/releases/download/v0.45.0/rules_go-v0.45.0.zip",
+        "https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.46.0/rules_go-v0.46.0.zip",
+        "https://github.com/bazelbuild/rules_go/releases/download/v0.46.0/rules_go-v0.46.0.zip",
     ],
 )
 
@@ -55,7 +55,7 @@
 go_rules_dependencies()
 
 go_register_toolchains(
-    go_version = "1.21.5",
+    go_version = "1.22.1",
     nogo = "@dev_source_monogon//build/analysis:nogo",
 )