From 7cd073209bb04b06eacd8145c4576044c5ee6cc0 Mon Sep 17 00:00:00 2001 From: 5h4d0w4rt <5h4d0w4rt@users.noreply.github.com> Date: Sat, 19 Dec 2020 15:48:10 +0300 Subject: [PATCH] changed relative toolchain path to absolute --- prometheus/internal/promtool.bzl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/prometheus/internal/promtool.bzl b/prometheus/internal/promtool.bzl index 7e43606..9d6f015 100644 --- a/prometheus/internal/promtool.bzl +++ b/prometheus/internal/promtool.bzl @@ -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( @@ -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): @@ -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( @@ -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"], )