From e33730a31e06a41440be0bfd6b850ce07c417b9f Mon Sep 17 00:00:00 2001 From: Angus Lees Date: Wed, 26 Oct 2022 14:22:23 +1100 Subject: [PATCH] Fix jsonnet-lint bazel build Update BUILD.bazel files so `bazel build //cmd/jsonnet-lint` works again. --- linter/BUILD.bazel | 1 - linter/internal/common/BUILD.bazel | 5 ++++- linter/internal/traversal/BUILD.bazel | 2 +- linter/internal/types/BUILD.bazel | 1 - 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/linter/BUILD.bazel b/linter/BUILD.bazel index 7089b6cf4..bd6186804 100644 --- a/linter/BUILD.bazel +++ b/linter/BUILD.bazel @@ -13,7 +13,6 @@ go_library( "//linter/internal/common:go_default_library", "//linter/internal/traversal:go_default_library", "//linter/internal/types:go_default_library", - "//linter/internal/utils:go_default_library", "//linter/internal/variables:go_default_library", ], ) diff --git a/linter/internal/common/BUILD.bazel b/linter/internal/common/BUILD.bazel index caccdda9a..cc280c6a1 100644 --- a/linter/internal/common/BUILD.bazel +++ b/linter/internal/common/BUILD.bazel @@ -5,5 +5,8 @@ go_library( srcs = ["common.go"], importpath = "github.com/google/go-jsonnet/linter/internal/common", visibility = ["//linter:__subpackages__"], - deps = ["//ast:go_default_library"], + deps = [ + "//ast:go_default_library", + "//internal/errors:go_default_library", + ], ) diff --git a/linter/internal/traversal/BUILD.bazel b/linter/internal/traversal/BUILD.bazel index 31cfc654b..9ce6eb549 100644 --- a/linter/internal/traversal/BUILD.bazel +++ b/linter/internal/traversal/BUILD.bazel @@ -8,6 +8,6 @@ go_library( deps = [ "//ast:go_default_library", "//internal/parser:go_default_library", - "//linter/internal/utils:go_default_library", + "//linter/internal/common:go_default_library", ], ) diff --git a/linter/internal/types/BUILD.bazel b/linter/internal/types/BUILD.bazel index e0e2040e7..32f6f3251 100644 --- a/linter/internal/types/BUILD.bazel +++ b/linter/internal/types/BUILD.bazel @@ -18,6 +18,5 @@ go_library( "//ast:go_default_library", "//internal/parser:go_default_library", "//linter/internal/common:go_default_library", - "//linter/internal/utils:go_default_library", ], )