Skip to content
This repository has been archived by the owner on Feb 6, 2024. It is now read-only.

Commit

Permalink
Resolver library (#628)
Browse files Browse the repository at this point in the history
* fix gazelle

* refactor flags

* big refactor

* Update BUILD

Co-authored-by: Erick Fejta <fejta@google.com>
  • Loading branch information
mariusgrigoriu and fejta authored Apr 30, 2021
1 parent 0ad1527 commit faa17f2
Show file tree
Hide file tree
Showing 5 changed files with 551 additions and 482 deletions.
18 changes: 2 additions & 16 deletions k8s/go/cmd/resolver/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library", "go_test")
load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")

package(default_visibility = ["//visibility:private"])

Expand All @@ -23,25 +23,11 @@ go_library(
srcs = ["resolver.go"],
importpath = "github.com/bazelbuild/rules_k8s/k8s/go/cmd/resolver",
visibility = ["//visibility:private"],
deps = [
"@com_github_google_go_containerregistry//pkg/authn:go_default_library",
"@com_github_google_go_containerregistry//pkg/name:go_default_library",
"@com_github_google_go_containerregistry//pkg/v1/remote:go_default_library",
"@in_gopkg_yaml_v2//:go_default_library",
"@io_bazel_rules_docker//container/go/pkg/compat:go_default_library",
"@io_bazel_rules_docker//container/go/pkg/utils:go_default_library",
],
deps = ["//k8s/go/pkg/resolver"],
)

go_binary(
name = "resolver",
embed = [":resolver_lib"],
visibility = ["//visibility:public"],
)

go_test(
name = "resolver_test",
srcs = ["resolver_test.go"],
embed = [":resolver_lib"],
deps = ["@com_github_google_go_cmp//cmp:go_default_library"],
)
Loading

0 comments on commit faa17f2

Please sign in to comment.