bazel: depset -> list

To comply with some breaking changes in rules_go v0.51, we explicitly
need to type-cast the depsets to lists here.
This commit is contained in:
Moritz Sanft 2025-01-17 14:00:56 +01:00
parent b6630eb7a7
commit 1fc81c275e
No known key found for this signature in database
GPG Key ID: 335D28368B1DA615

View File

@ -14,7 +14,7 @@ def _ensure_target_cfg(ctx):
def _go_bin_for_host_impl(ctx):
_ensure_target_cfg(ctx)
sdk = ctx.toolchains[GO_TOOLCHAIN].sdk
sdk_files = ctx.runfiles([sdk.go] + sdk.headers + sdk.libs + sdk.srcs + sdk.tools)
sdk_files = ctx.runfiles([sdk.go] + sdk.headers.to_list() + sdk.libs.to_list() + sdk.srcs.to_list() + sdk.tools.to_list())
return [
DefaultInfo(
files = depset([sdk.go]),