| load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") |
| |
| go_library( |
| name = "build", |
| srcs = ["build.go"], |
| importpath = "aspect.build/cli/pkg/aspect/build", |
| visibility = ["//cmd/aspect/build:__pkg__"], |
| deps = [ |
| "//pkg/aspect/build/bep", |
| "//pkg/aspecterrors", |
| "//pkg/bazel", |
| "//pkg/hooks", |
| "//pkg/ioutils", |
| "//third-party/github.com/bazelbuild/bazel/src/main/java/com/google/devtools/build/lib/buildeventstream/proto", |
| "@com_github_spf13_cobra//:cobra", |
| ], |
| ) |
| |
| go_test( |
| name = "build_test", |
| srcs = ["build_test.go"], |
| deps = [ |
| ":build", |
| "//pkg/aspect/build/bep/mock", |
| "//pkg/aspecterrors", |
| "//pkg/bazel/mock", |
| "//pkg/hooks", |
| "//pkg/ioutils", |
| "@com_github_golang_mock//gomock", |
| "@com_github_onsi_gomega//:gomega", |
| ], |
| ) |