Compare commits

..

No commits in common. 'dev' and 'main' have entirely different histories.
dev ... main

@ -1,27 +1 @@
common --experimental_enable_bzlmod common --experimental_enable_bzlmod
# Disable lockfiles until it works properly.
# https://github.com/bazelbuild/bazel/issues/19068
common --lockfile_mode=off
###############################
# Directory structure #
###############################
# Artifacts are typically placed in a directory called "dist"
# Be aware that this setup will still create a bazel-out symlink in
# your project directory, which you must exclude from version control and your
# editor's search path.
build --symlink_prefix=dist/
###############################
# Output #
###############################
# A more useful default output mode for bazel query, which
# prints "ng_module rule //foo:bar" instead of just "//foo:bar".
query --output=label_kind
# By default, failing tests don't print any output, it's logged to a
# file instead.
test --test_output=errors

1
.gitignore vendored

@ -5,4 +5,3 @@ reports/*
lexer.log lexer.log
parser.log parser.log
bazel-* bazel-*
*.bazel.lock

@ -21,7 +21,6 @@ go_library(
go_test( go_test(
name = "obsidian-markdown_test", name = "obsidian-markdown_test",
size = "small",
srcs = [ srcs = [
"lexer_test.go", "lexer_test.go",
"wikilink_test.go", "wikilink_test.go",

@ -6,17 +6,7 @@ module(
bazel_dep(name = "gazelle", version = "0.32.0") bazel_dep(name = "gazelle", version = "0.32.0")
bazel_dep(name = "rules_go", version = "0.41.0") bazel_dep(name = "rules_go", version = "0.41.0")
bazel_dep(name = "rules_oci", version = "1.2.0") bazel_dep(name = "rules_oci", version = "1.2.0")
bazel_dep(name = "rules_pkg", version = "0.9.1")
go_deps = use_extension("@gazelle//:extensions.bzl", "go_deps") go_deps = use_extension("@gazelle//:extensions.bzl", "go_deps")
go_deps.from_file(go_mod = "//:go.mod") go_deps.from_file(go_mod = "//:go.mod")
use_repo(go_deps, "com_github_stretchr_testify", "org_uber_go_zap") use_repo(go_deps, "com_github_stretchr_testify", "org_uber_go_zap")
oci = use_extension("@rules_oci//oci:extensions.bzl", "oci")
oci.pull(
name = "distroless_base",
tag = "latest",
image = "gcr.io/distroless/base-debian11",
)
use_repo(oci, "distroless_base")

File diff suppressed because it is too large Load Diff

@ -16,19 +16,3 @@ go_binary(
embed = [":demo_lib"], embed = [":demo_lib"],
visibility = ["//visibility:public"], visibility = ["//visibility:public"],
) )
load("@rules_pkg//:pkg.bzl", "pkg_tar")
pkg_tar(
name = "tar",
srcs = [":demo"],
)
load("@rules_oci//oci:defs.bzl", "oci_image")
oci_image(
name = "image",
base = "@distroless_base",
entrypoint = ["/demo"],
tars = [":tar"],
)

Loading…
Cancel
Save