From 385e9d84bc81f9ad68bed4e8a3c1a350d1ecd838 Mon Sep 17 00:00:00 2001 From: Jay Conrod Date: Sun, 1 Dec 2019 13:01:53 -0500 Subject: [PATCH] comment for GoToolchain --- v5/internal/providers.bzl | 4 ++++ v5/internal/toolchain.bzl | 4 ---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/v5/internal/providers.bzl b/v5/internal/providers.bzl index 142b80e..377ae89 100644 --- a/v5/internal/providers.bzl +++ b/v5/internal/providers.bzl @@ -15,6 +15,10 @@ GoLibrary = provider( }, ) +# GoToolchain is a dummy provider that serves as documentation for the +# public interface of the ToolchainInfo provide returned by go_toolchain. +# Toolchains compatible with @rules_go_simple//v5:toolchain_type must +# satisfy this interface. However, no GoToolchain object is actually created. GoToolchain = provider( doc = "Contains information about a Go toolchain", fields = { diff --git a/v5/internal/toolchain.bzl b/v5/internal/toolchain.bzl index 294f938..c69de38 100644 --- a/v5/internal/toolchain.bzl +++ b/v5/internal/toolchain.bzl @@ -7,10 +7,6 @@ load( "@bazel_skylib//lib:paths.bzl", "paths", ) -load( - ":providers.bzl", - "GoToolchain", -) load( ":actions.bzl", "go_build_test",