diff --git a/go/private/extensions.bzl b/go/private/extensions.bzl index d3dc4aa790..249ec10a0e 100644 --- a/go/private/extensions.bzl +++ b/go/private/extensions.bzl @@ -4,8 +4,8 @@ load("//go/private:repositories.bzl", "go_rules_dependencies") def host_compatible_toolchain_impl(ctx): ctx.file("BUILD.bazel") ctx.file("defs.bzl", content = """ -host_compatible_sdk = Label("{}") -""".format(ctx.attr.toolchain)) +host_compatible_sdk = Label({}) +""".format(repr(ctx.attr.toolchain))) host_compatible_toolchain = repository_rule( implementation = host_compatible_toolchain_impl, @@ -13,7 +13,7 @@ host_compatible_toolchain = repository_rule( # We cannot use attr.label for the `toolchain` attribute since the module extension cannot # refer to the repositories it creates by their apparent repository names. "toolchain": attr.string( - doc = "The label of a `ROOT` file in the repository of a host compatible toolchain", + doc = "The apparent label of a `ROOT` file in the repository of a host compatible toolchain created by the `go_sdk` extension", mandatory = True, ), },