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",