bazel_dep(name = "rules_go", version = "0.47.0", repo_name = "io_bazel_rules_go") bazel_dep(name = "gazelle", version = "0.36.0", repo_name = "bazel_gazelle") bazel_dep(name = "rules_oci", version = "1.7.5") bazel_dep(name = "rules_pkg", version = "0.9.1") bazel_dep(name = "rules_helm", version = "0.4.0") bazel_dep(name = "aspect_bazel_lib", version = "2.7.3") # This is needed so that rules_oci supports arm64 # See: https://github.com/bazel-contrib/rules_oci/issues/253 git_override( module_name = "rules_oci", commit = "7700f626ad3439a51e9735e0fb1c2f69734e8a28", remote = "https://github.com/archen/rules_oci.git", ) oci = use_extension("@rules_oci//oci:extensions.bzl", "oci") oci.pull( name = "distroless_base", digest = "sha256:ccaef5ee2f1850270d453fdf700a5392534f8d1a8ca2acda391fbb6a06b81c86", image = "gcr.io/distroless/base", platforms = [ "linux/amd64", "linux/arm64", ], ) use_repo(oci, "distroless_base") go_deps = use_extension("@bazel_gazelle//:extensions.bzl", "go_deps") go_deps.from_file(go_mod = "//:go.mod") use_repo( go_deps, "com_github_jmoiron_sqlx", "com_github_lib_pq", "com_github_segmentio_kafka_go", "com_github_stretchr_testify", "org_uber_go_mock", )