load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") go_library( name = "version", srcs = ["version.go"], importpath = "edge-infra.dev/pkg/lib/runtime/version", visibility = ["//visibility:public"], x_defs = { "semver": "{STABLE_APP_SEMVER}", "commit": "{STABLE_APP_GIT_COMMIT}", "rc": "{STABLE_APP_RELEASE_CANDIDATE}", "timestamp": "{STABLE_APP_GIT_TIMESTAMP}", }, deps = [ "//:edge-infra.dev", "//pkg/lib/build", ], ) go_test( name = "version_test", srcs = ["version_test.go"], embed = [":version"], deps = [ "//pkg/lib/build", "@tools_gotest_v3//assert", "@tools_gotest_v3//assert/cmp", ], )