From 63fa87f33b8f7aa1476638ba01684f63d5651c05 Mon Sep 17 00:00:00 2001 From: Nick Dumas Date: Sat, 19 Aug 2023 09:39:59 -0400 Subject: [PATCH] now featuring bzlmod enabled builds --- cmd/echo/BUILD.bazel | 14 ++++++++++++++ protocol/BUILD.bazel | 8 ++++++++ 2 files changed, 22 insertions(+) create mode 100644 cmd/echo/BUILD.bazel create mode 100644 protocol/BUILD.bazel diff --git a/cmd/echo/BUILD.bazel b/cmd/echo/BUILD.bazel new file mode 100644 index 0000000..1adf6d5 --- /dev/null +++ b/cmd/echo/BUILD.bazel @@ -0,0 +1,14 @@ +load("@rules_go//go:def.bzl", "go_binary", "go_library") + +go_library( + name = "echo_lib", + srcs = ["server.go"], + importpath = "code.ndumas.com/ndumas/gomud/cmd/echo", + visibility = ["//visibility:private"], +) + +go_binary( + name = "echo", + embed = [":echo_lib"], + visibility = ["//visibility:public"], +) diff --git a/protocol/BUILD.bazel b/protocol/BUILD.bazel new file mode 100644 index 0000000..d24d04a --- /dev/null +++ b/protocol/BUILD.bazel @@ -0,0 +1,8 @@ +load("@rules_go//go:def.bzl", "go_library") + +go_library( + name = "protocol", + srcs = ["telnet.go"], + importpath = "code.ndumas.com/ndumas/gomud/protocol", + visibility = ["//visibility:public"], +)