Skip to content

Commit a9aebfe

Browse files
committed
Update bazel deps
This updates the deps to match the go.mod file as well as move the bazel deps to use our vendored folders so the go build and bazel build are 100% the same.
1 parent 5267be2 commit a9aebfe

140 files changed

Lines changed: 2857 additions & 373 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

BUILD.bazel

Lines changed: 27 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,9 @@ load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")
22

33
go_binary(
44
name = "git-sync",
5-
srcs = [
6-
"main.go",
7-
"schema.go",
8-
],
5+
embed = [":go_default_library"],
96
pure = "on",
107
visibility = ["//visibility:public"],
11-
deps = [
12-
"@com_github_google_go_github//github:go_default_library",
13-
"@com_github_prometheus_client_golang//prometheus/promhttp:go_default_library",
14-
"@com_github_santhosh_tekuri_jsonschema//:go_default_library",
15-
"@com_github_sirupsen_logrus//:go_default_library",
16-
"@in_gopkg_src_d_go_git_v4//:go_default_library",
17-
"@in_gopkg_src_d_go_git_v4//config:go_default_library",
18-
"@in_gopkg_src_d_go_git_v4//plumbing/format/config:go_default_library",
19-
"@in_gopkg_src_d_go_git_v4//plumbing/transport:go_default_library",
20-
"@in_gopkg_src_d_go_git_v4//plumbing/transport/http:go_default_library",
21-
"@in_gopkg_src_d_go_git_v4//plumbing/transport/ssh:go_default_library",
22-
"@in_gopkg_yaml_v2//:go_default_library",
23-
"@org_golang_x_crypto//ssh:go_default_library",
24-
"@org_golang_x_oauth2//:go_default_library",
25-
],
268
x_defs = {
279
"main.version": "{STABLE_GIT_TAG}",
2810
"main.commit": "{STABLE_GIT_COMMIT}",
@@ -31,4 +13,30 @@ go_binary(
3113

3214
load("@bazel_gazelle//:def.bzl", "gazelle")
3315

16+
# gazelle:prefix cgit.xrt0x.com/xrt0x/git-sync
3417
gazelle(name = "gazelle")
18+
19+
go_library(
20+
name = "go_default_library",
21+
srcs = [
22+
"main.go",
23+
"schema.go",
24+
],
25+
importpath = "cgit.xrt0x.com/xrt0x/git-sync",
26+
visibility = ["//visibility:private"],
27+
deps = [
28+
"//vendor/github.com/go-git/go-git/v5:go_default_library",
29+
"//vendor/github.com/go-git/go-git/v5/config:go_default_library",
30+
"//vendor/github.com/go-git/go-git/v5/plumbing/format/config:go_default_library",
31+
"//vendor/github.com/go-git/go-git/v5/plumbing/transport:go_default_library",
32+
"//vendor/github.com/go-git/go-git/v5/plumbing/transport/http:go_default_library",
33+
"//vendor/github.com/go-git/go-git/v5/plumbing/transport/ssh:go_default_library",
34+
"//vendor/github.com/google/go-github/github:go_default_library",
35+
"//vendor/github.com/prometheus/client_golang/prometheus/promhttp:go_default_library",
36+
"//vendor/github.com/santhosh-tekuri/jsonschema:go_default_library",
37+
"//vendor/github.com/sirupsen/logrus:go_default_library",
38+
"//vendor/golang.org/x/crypto/ssh:go_default_library",
39+
"//vendor/golang.org/x/oauth2:go_default_library",
40+
"//vendor/gopkg.in/yaml.v2:go_default_library",
41+
],
42+
)

0 commit comments

Comments
 (0)