Skip to content

Commit

Permalink
changed relative toolchain path to absolute
Browse files Browse the repository at this point in the history
  • Loading branch information
5h4d0w4rt committed Dec 19, 2020
1 parent 24ced20 commit 7cd0732
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions prometheus/internal/promtool.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ def _promtool_unit_test_impl(ctx):

# To ensure the files needed by the script are available, we put them in
# the runfiles.
promtool_info = ctx.toolchains["//prometheus/toolchain:toolchain_type"].prometheusToolchainInfo.promtool
promtool_info = ctx.toolchains["@io_bazel_rules_prometheus//prometheus/toolchain:toolchain_type"].prometheusToolchainInfo.promtool
promtool_unit_test_runner_template = promtool_info.template.files.to_list()[0]

runfiles = ctx.runfiles(
Expand Down Expand Up @@ -33,7 +33,7 @@ promtool_unit_test = rule(
"srcs": attr.label_list(mandatory = True, allow_files = True, cfg = "target"),
"rules": attr.label_list(mandatory = True, allow_files = True),
},
toolchains = ["//prometheus/toolchain:toolchain_type"],
toolchains = ["@io_bazel_rules_prometheus//prometheus/toolchain:toolchain_type"],
)

def _promtool_config_test_impl(ctx):
Expand All @@ -42,7 +42,7 @@ def _promtool_config_test_impl(ctx):
# To ensure the files needed by the script are available, we put them in
# the runfiles.

promtool_info = ctx.toolchains["//prometheus/toolchain:toolchain_type"].prometheusToolchainInfo.promtool
promtool_info = ctx.toolchains["@io_bazel_rules_prometheus//prometheus/toolchain:toolchain_type"].prometheusToolchainInfo.promtool
promtool_unit_test_runner_template = promtool_info.template.files.to_list()[0]

runfiles = ctx.runfiles(
Expand Down Expand Up @@ -71,5 +71,5 @@ promtool_config_test = rule(
"_action": attr.string(default = "check config"),
"srcs": attr.label_list(mandatory = True, allow_files = True),
},
toolchains = ["//prometheus/toolchain:toolchain_type"],
toolchains = ["@io_bazel_rules_prometheus//prometheus/toolchain:toolchain_type"],
)

0 comments on commit 7cd0732

Please # to comment.