| load("//bazel/go:go_test.bzl", "go_test") |
| load("@io_bazel_rules_go//go:def.bzl", "go_library") |
| |
| go_library( |
| name = "commit_msg", |
| srcs = [ |
| "android.go", |
| "canary.go", |
| "commit_msg.go", |
| "default.go", |
| ], |
| importpath = "go.skia.org/infra/autoroll/go/commit_msg", |
| visibility = ["//visibility:public"], |
| deps = [ |
| "//autoroll/go/config", |
| "//autoroll/go/config_vars", |
| "//autoroll/go/revision", |
| "//go/skerr", |
| "//go/util", |
| ], |
| ) |
| |
| go_test( |
| name = "commit_msg_test", |
| srcs = [ |
| "android_test.go", |
| "canary_test.go", |
| "commit_msg_test.go", |
| "default_test.go", |
| ], |
| embed = [":commit_msg"], |
| deps = [ |
| "//autoroll/go/config", |
| "//autoroll/go/config_vars", |
| "//go/chrome_branch", |
| "//go/chrome_branch/mocks", |
| "//go/deepequal/assertdeep", |
| "//go/testutils", |
| "//go/testutils/unittest", |
| "@com_github_stretchr_testify//require", |
| ], |
| ) |