-
Notifications
You must be signed in to change notification settings - Fork 614
Expand file tree
/
Copy pathMODULE.bazel
More file actions
106 lines (102 loc) · 3.7 KB
/
MODULE.bazel
File metadata and controls
106 lines (102 loc) · 3.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
bazel_dep(name = "rules_go", version = "0.59.0")
bazel_dep(name = "gazelle", version = "0.47.0")
bazel_dep(name = "rules_oci", version = "2.2.7")
bazel_dep(name = "rules_pkg", version = "1.1.0")
bazel_dep(name = "platforms", version = "1.0.0")
oci = use_extension("@rules_oci//oci:extensions.bzl", "oci")
oci.pull(
name = "distroless_static",
digest = "sha256:20bc6c0bc4d625a22a8fde3e55f6515709b32055ef8fb9cfbddaa06d1760f838",
image = "gcr.io/distroless/static-debian12",
platforms = [
"linux/amd64",
"linux/arm64/v8",
],
)
use_repo(
oci,
"distroless_static",
"distroless_static_linux_amd64",
"distroless_static_linux_arm64_v8",
)
go_sdk = use_extension("@rules_go//go:extensions.bzl", "go_sdk")
# Download an SDK for the host OS & architecture as well as common remote execution
# platforms, using the version given from the `go.mod` file.
go_sdk.from_file(go_mod = "//:go.mod")
go_sdk.nogo(nogo = "//:my_nogo")
go_deps = use_extension("@gazelle//:extensions.bzl", "go_deps")
go_deps.from_file(go_mod = "//:go.mod")
go_deps.gazelle_default_attributes(
directives = [
"gazelle:proto disable", # we are generating code from protos already
],
)
use_repo(
go_deps,
"build_buf_gen_go_depot_api_connectrpc_go",
"build_buf_gen_go_depot_api_protocolbuffers_go",
"com_connectrpc_connect",
"com_github_aftership_clickhouse_sql_parser",
"com_github_aws_aws_sdk_go_v2",
"com_github_aws_aws_sdk_go_v2_config",
"com_github_aws_aws_sdk_go_v2_credentials",
"com_github_aws_aws_sdk_go_v2_service_s3",
"com_github_bufbuild_buf",
"com_github_cilium_cilium",
"com_github_clickhouse_clickhouse_go_v2",
"com_github_depot_depot_go",
"com_github_docker_cli",
"com_github_docker_docker",
"com_github_docker_go_connections",
"com_github_getkin_kin_openapi",
"com_github_go_acme_lego_v4",
"com_github_go_sql_driver_mysql",
"com_github_hashicorp_memberlist",
"com_github_maypok86_otter",
"com_github_moby_buildkit",
"com_github_oapi_codegen_nullable",
"com_github_oapi_codegen_oapi_codegen_v2",
"com_github_oasdiff_oasdiff",
"com_github_opencontainers_go_digest",
"com_github_pb33f_libopenapi",
"com_github_pb33f_libopenapi_validator",
"com_github_prometheus_client_golang",
"com_github_redis_go_redis_v9",
"com_github_restatedev_sdk_go",
"com_github_shirou_gopsutil_v4",
"com_github_sqlc_dev_plugin_sdk_go",
"com_github_sqlc_dev_sqlc",
"com_github_stretchr_testify",
"io_k8s_api",
"io_k8s_apimachinery",
"io_k8s_client_go",
"io_k8s_sigs_controller_runtime",
"io_opentelemetry_go_contrib_bridges_otelslog",
"io_opentelemetry_go_contrib_bridges_prometheus",
"io_opentelemetry_go_contrib_processors_minsev",
"io_opentelemetry_go_otel",
"io_opentelemetry_go_otel_exporters_otlp_otlplog_otlploghttp",
"io_opentelemetry_go_otel_exporters_otlp_otlpmetric_otlpmetrichttp",
"io_opentelemetry_go_otel_exporters_otlp_otlptrace_otlptracehttp",
"io_opentelemetry_go_otel_metric",
"io_opentelemetry_go_otel_sdk",
"io_opentelemetry_go_otel_sdk_log",
"io_opentelemetry_go_otel_sdk_metric",
"io_opentelemetry_go_otel_trace",
"org_golang_google_protobuf",
"org_golang_x_net",
"org_golang_x_sync",
"org_golang_x_text",
"org_golang_x_tools",
# Linter dependencies
"co_honnef_go_tools",
"com_github_bmatcuk_doublestar_v4",
"com_github_burntsushi_toml",
"com_github_curioswitch_go_reassign",
"com_github_gordonklaus_ineffassign",
"com_github_kisielk_errcheck",
"com_github_nishanths_exhaustive",
"com_github_unkeyed_sdks_api_go_v2",
"org_golang_x_term",
"team_gaijin_dev_go_exhaustruct_v4",
)