Skip to content

Commit

Permalink
rename main() entrypoint to main.go
Browse files Browse the repository at this point in the history
  • Loading branch information
tyler-french committed Aug 28, 2024
1 parent 2d6805c commit 5510ae7
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 9 deletions.
4 changes: 2 additions & 2 deletions cmd/autogazelle/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")
go_library(
name = "autogazelle_lib",
srcs = [
"autogazelle.go",
"client_unix.go",
"main.go",
"server_unix.go",
],
importpath = "github.com/bazelbuild/bazel-gazelle/cmd/autogazelle",
Expand Down Expand Up @@ -57,8 +57,8 @@ filegroup(
"BUILD.bazel",
"README.rst",
"autogazelle.bash",
"autogazelle.go",
"client_unix.go",
"main.go",
"server_unix.go",
],
visibility = ["//visibility:public"],
Expand Down
File renamed without changes.
17 changes: 12 additions & 5 deletions cmd/fetch_repo/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ go_library(
"clean.go",
"copy_tree.go",
"errorscompat.go",
"fetch_repo.go",
"go_mod_download.go",
"main.go",
"module.go",
"path.go",
"vcs.go",
Expand All @@ -34,8 +34,8 @@ go_cross_binary(
)

go_test(
name = "fetch_repo_test",
srcs = ["fetch_repo_test.go"],
name = "main_test",
srcs = ["main_test.go"],
embed = [":fetch_repo_lib"],
deps = ["@org_golang_x_tools_go_vcs//:vcs"],
)
Expand All @@ -48,12 +48,19 @@ filegroup(
"clean.go",
"copy_tree.go",
"errorscompat.go",
"fetch_repo.go",
"fetch_repo_test.go",
"go_mod_download.go",
"main.go",
"main_test.go",
"module.go",
"path.go",
"vcs.go",
],
visibility = ["//visibility:public"],
)

go_test(
name = "fetch_repo_test",
srcs = ["main_test.go"],
embed = [":fetch_repo_lib"],
deps = ["@org_golang_x_tools_go_vcs//:vcs"],
)
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions cmd/gazelle/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ go_library(
"diff.go",
"fix.go",
"fix-update.go",
"gazelle.go",
"main.go",
"metaresolver.go",
"print.go",
"profiler.go",
Expand Down Expand Up @@ -73,9 +73,9 @@ filegroup(
"fix.go",
"fix-update.go",
"fix_test.go",
"gazelle.go",
"integration_test.go",
"langs.go",
"main.go",
"metaresolver.go",
"print.go",
"profiler.go",
Expand Down
File renamed without changes.

0 comments on commit 5510ae7

Please sign in to comment.