diff --git a/BUILD.bazel b/BUILD.bazel index 882a659..d615a2f 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -18,4 +18,8 @@ go_library( srcs = ["version.go"], importpath = "code.ndumas.com/ndumas/gomud", visibility = ["//visibility:public"], + x_defs = { + "code.ndumas.com/ndumas/gomud.VERSION": "{STABLE_GIT_VERSION}", + "code.ndumas.com/ndumas/gomud.BUILD": "{STABLE_GIT_COMMIT}", + }, ) diff --git a/cmd/echo/BUILD.bazel b/cmd/echo/BUILD.bazel index b73edc9..aac4cc9 100644 --- a/cmd/echo/BUILD.bazel +++ b/cmd/echo/BUILD.bazel @@ -22,10 +22,6 @@ go_binary( name = "echo", embed = [":echo_lib"], visibility = ["//visibility:public"], - x_defs = { - "code.ndumas.com/ndumas/gomud.VERSION": "{STABLE_GIT_VERSION}", - "code.ndumas.com/ndumas/gomud.BUILD": "{STABLE_GIT_COMMIT}", - }, ) go_cross_binary(