updating bazel stuff

stamping
Nick Dumas 1 year ago
parent f3898fe694
commit 2447914517

@ -10,7 +10,7 @@ bazel_dep(name = "rules_pkg", version = "0.9.1")
go_deps = use_extension("@gazelle//:extensions.bzl", "go_deps")
go_deps.from_file(go_mod = "//:go.mod")
use_repo(go_deps, "com_github_therealfakemoot_go_telnet")
use_repo(go_deps, "com_github_engoengine_engo", "com_github_threedotslabs_watermill")
oci = use_extension("@rules_oci//oci:extensions.bzl", "oci")
oci.pull(

@ -2,9 +2,18 @@ load("@rules_go//go:def.bzl", "go_binary", "go_library")
go_library(
name = "echo_lib",
srcs = ["server.go"],
srcs = ["main.go"],
importpath = "code.ndumas.com/ndumas/gomud/cmd/echo",
visibility = ["//visibility:private"],
deps = [
"//logger",
"//telnet",
"@com_github_threedotslabs_watermill//:watermill",
"@com_github_threedotslabs_watermill//message",
"@com_github_threedotslabs_watermill//message/router/middleware",
"@com_github_threedotslabs_watermill//message/router/plugin",
"@com_github_threedotslabs_watermill//pubsub/gochannel",
],
)
go_binary(
@ -32,6 +41,6 @@ oci_image(
oci_push(
name = "registry",
image = ":image",
repository = "code.ndumas.com/ndumas/gomud",
remote_tags = ["latest"],
repository = "code.ndumas.com/ndumas/gomud",
)

@ -0,0 +1,9 @@
load("@rules_go//go:def.bzl", "go_library")
go_library(
name = "ecs",
srcs = ["world.go"],
importpath = "code.ndumas.com/ndumas/gomud/ecs",
visibility = ["//visibility:public"],
deps = ["@com_github_engoengine_engo//:engo"],
)

@ -0,0 +1,9 @@
load("@rules_go//go:def.bzl", "go_library")
go_library(
name = "logger",
srcs = ["wrappedslogger.go"],
importpath = "code.ndumas.com/ndumas/gomud/logger",
visibility = ["//visibility:public"],
deps = ["@com_github_threedotslabs_watermill//:watermill"],
)

@ -6,3 +6,19 @@ go_library(
importpath = "code.ndumas.com/ndumas/gomud/protocol",
visibility = ["//visibility:public"],
)
go_library(
name = "telnet",
srcs = [
"options.go",
"parser.go",
"server.go",
],
importpath = "code.ndumas.com/ndumas/gomud/telnet",
visibility = ["//visibility:public"],
deps = [
"@com_github_threedotslabs_watermill//:watermill",
"@com_github_threedotslabs_watermill//message",
"@com_github_threedotslabs_watermill//message/router/middleware",
],
)

Loading…
Cancel
Save