You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
615 B
Python
26 lines
615 B
Python
load("@rules_go//go:def.bzl", "go_library")
|
|
load("@gazelle//:def.bzl", "gazelle")
|
|
|
|
gazelle(name = "gazelle")
|
|
|
|
gazelle(
|
|
name = "gazelle-update-repos",
|
|
args = [
|
|
"-from_file=go.mod",
|
|
"-to_macro=deps.bzl%go_dependencies",
|
|
"-prune",
|
|
],
|
|
command = "update-repos",
|
|
)
|
|
|
|
go_library(
|
|
name = "gomud",
|
|
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}",
|
|
},
|
|
)
|