|
|
|
module(
|
|
|
|
name = "obsidian-markdown",
|
|
|
|
repo_name = "code.ndumas.com_ndumas_obsidian-markdown",
|
|
|
|
)
|
|
|
|
|
|
|
|
bazel_dep(name = "gazelle", version = "0.32.0")
|
|
|
|
bazel_dep(name = "rules_go", version = "0.41.0")
|
|
|
|
bazel_dep(name = "rules_oci", version = "1.3.1")
|
|
|
|
bazel_dep(name = "rules_pkg", version = "0.9.1")
|
|
|
|
bazel_dep(name = "platforms", version = "0.0.7")
|
|
|
|
|
|
|
|
go_deps = use_extension("@gazelle//:extensions.bzl", "go_deps")
|
|
|
|
go_deps.from_file(go_mod = "//:go.mod")
|
|
|
|
use_repo(go_deps, "com_github_stretchr_testify", "org_uber_go_zap")
|
|
|
|
|
|
|
|
toolchains = use_extension("@rules_go//go/toolchain:toolchains.bzl", "declare_constraints")
|
|
|
|
toolchains.declare_constraints()
|
|
|
|
|
|
|
|
oci = use_extension("@rules_oci//oci:extensions.bzl", "oci")
|
|
|
|
oci.pull(
|
|
|
|
name = "distroless_base",
|
|
|
|
digest = "sha256:73deaaf6a207c1a33850257ba74e0f196bc418636cada9943a03d7abea980d6d",
|
|
|
|
image = "gcr.io/distroless/base",
|
|
|
|
platforms = [
|
|
|
|
"linux/amd64",
|
|
|
|
"linux/arm",
|
|
|
|
"linux/arm64",
|
|
|
|
"linux/ppc64le",
|
|
|
|
"linux/s390x",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
use_repo(oci, "distroless_base")
|