From a5f717c4f423adcdb24a98f7cea7128657881ec6 Mon Sep 17 00:00:00 2001 From: Nick Dumas Date: Sat, 19 Aug 2023 09:27:57 -0400 Subject: [PATCH] cleaning up to reproduce a gazelle bug --- MODULE.bazel | 2 ++ cmd/echo/BUILD.bazel | 14 -------------- protocol/BUILD.bazel | 8 -------- 3 files changed, 2 insertions(+), 22 deletions(-) delete mode 100644 cmd/echo/BUILD.bazel delete mode 100644 protocol/BUILD.bazel diff --git a/MODULE.bazel b/MODULE.bazel index 8e82690..57e3308 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -4,6 +4,8 @@ module( ) bazel_dep(name = "gazelle", version = "0.32.0") +bazel_dep(name = "rules_go", version = "0.41.0") + go_deps = use_extension("@gazelle//:extensions.bzl", "go_deps") go_deps.from_file(go_mod = "//:go.mod") diff --git a/cmd/echo/BUILD.bazel b/cmd/echo/BUILD.bazel deleted file mode 100644 index 14acf00..0000000 --- a/cmd/echo/BUILD.bazel +++ /dev/null @@ -1,14 +0,0 @@ -load("@io_bazel_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 deleted file mode 100644 index 7763f0e..0000000 --- a/protocol/BUILD.bazel +++ /dev/null @@ -1,8 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "protocol", - srcs = ["telnet.go"], - importpath = "code.ndumas.com/ndumas/gomud/protocol", - visibility = ["//visibility:public"], -)