diff --git a/cmd/echo/BUILD.bazel b/cmd/echo/BUILD.bazel index 1345e6b..47c7581 100644 --- a/cmd/echo/BUILD.bazel +++ b/cmd/echo/BUILD.bazel @@ -1,4 +1,4 @@ -load("@rules_go//go:def.bzl", "go_binary", "go_library", "go_cross_binary") +load("@rules_go//go:def.bzl", "go_binary", "go_cross_binary", "go_library") go_library( name = "echo_lib", @@ -6,9 +6,11 @@ go_library( importpath = "code.ndumas.com/ndumas/gomud/cmd/echo", visibility = ["//visibility:private"], deps = [ + "//:gomud", + "//engine", "//logger", "//telnet", - "@com_github_threedotslabs_watermill//:watermill", + "@com_github_engoengine_ecs//:ecs", "@com_github_threedotslabs_watermill//message", "@com_github_threedotslabs_watermill//message/router/middleware", "@com_github_threedotslabs_watermill//message/router/plugin", @@ -21,17 +23,15 @@ go_binary( 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", + "code.ndumas.com/ndumas/gomud.Version": "STABLE_GIT_VERSION", + "code.ndumas.com/ndumas/gomud.Build": "STABLE_GIT_COMMIT", }, ) - - go_cross_binary( - name = "cross_binary", - target = ":echo", + name = "cross_binary", sdk_version = "1.21.0", + target = ":echo", ) load("@rules_pkg//:pkg.bzl", "pkg_tar") diff --git a/cmd/echo/main.go b/cmd/echo/main.go index 3d5fe20..d7de1c5 100644 --- a/cmd/echo/main.go +++ b/cmd/echo/main.go @@ -87,7 +87,7 @@ func main() { // create the world world := ecs.World{} // create systems - world.AddSytem(&engine.TELNETRenderSystem) + world.AddSystem(&engine.TELNETRenderSystem{}) // load saved state for {