treewide: bump bazel dependencies
- rules_python to 1.0.0
- rules_go to 0.51.0
- gazelle to 0.41.0
- rules_oci to 2.2.0
- aspect_bazel_lib to 2.10.0
- rules_multirun to 0.10.0
- rules_cc to 0.1.0
Change-Id: I11c662d478b66d313d47e8a7700e129fd67743ce
Reviewed-on: https://review.monogon.dev/c/monogon/+/3766
Reviewed-by: Leopold Schabel <leo@monogon.tech>
Tested-by: Jenkins CI
diff --git a/build/toolbase/gotoolchain/def.bzl b/build/toolbase/gotoolchain/def.bzl
index 2ff5fe0..dbbba72 100644
--- a/build/toolbase/gotoolchain/def.bzl
+++ b/build/toolbase/gotoolchain/def.bzl
@@ -18,7 +18,7 @@
output = out,
substitutions = {
"GOROOT": go.sdk.root_file.dirname,
- "GOTOOL": go.go.path,
+ "GOTOOL": go.sdk.go.path,
},
)
@@ -30,10 +30,13 @@
# Hack: we want to inject runfiles into the generated GoSource, because
# there's no other way to make rules_go pick up runfiles otherwise.
- runfiles = ctx.runfiles(files = [
- go.go,
- go.sdk_root,
- ] + go.sdk_files)
+ runfiles = ctx.runfiles(
+ [
+ go.sdk.go,
+ go.sdk.root_file,
+ ],
+ transitive_files = depset(transitive = [go.sdk.headers, go.sdk.srcs, go.sdk.libs, go.sdk.tools]),
+ )
source = {
key: getattr(source, key)
for key in dir(source)