Skip to content

Commit a90a700

Browse files
aiutoJSGette
andauthored
[ABLD-408] L0, some internal/tools (#48260)
### What does this PR do? migrate - internal/tools/independent-lint/BUILD.bazel - internal/tools/modformatter/BUILD.bazel Based on #48250, but fixes a go.mod which was inconsistent. Co-authored-by: joseph.gette <joseph.gette@datadoghq.com>
1 parent 9e9291f commit a90a700

4 files changed

Lines changed: 37 additions & 3 deletions

File tree

BUILD.bazel

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ package(default_visibility = ["//visibility:public"])
1313
# gazelle:exclude internal/remote-agent
1414
# gazelle:exclude internal/third_party
1515
# gazelle:exclude internal/tools/gotest-custom
16-
# gazelle:exclude internal/tools/independent-lint
17-
# gazelle:exclude internal/tools/modformatter
1816
# gazelle:exclude pkg/aggregator
1917
# gazelle:exclude pkg/api
2018
# gazelle:exclude pkg/cli
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
load("@rules_go//go:def.bzl", "go_binary", "go_library")
2+
3+
go_library(
4+
name = "independent-lint_lib",
5+
srcs = ["independent.go"],
6+
importpath = "github.com/DataDog/datadog-agent/internal/tools/independent-lint",
7+
visibility = ["//visibility:private"],
8+
deps = [
9+
"@org_golang_x_mod//modfile",
10+
"@org_golang_x_mod//module",
11+
],
12+
)
13+
14+
go_binary(
15+
name = "independent-lint",
16+
embed = [":independent-lint_lib"],
17+
visibility = ["//:__subpackages__"],
18+
)

internal/tools/independent-lint/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/DataDog/datadog-agent/cmd/independent-lint
1+
module github.com/DataDog/datadog-agent/internal/tools/independent-lint
22

33
go 1.25.0
44

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
load("@rules_go//go:def.bzl", "go_binary", "go_library")
2+
3+
go_library(
4+
name = "modformatter_lib",
5+
srcs = ["modformatter.go"],
6+
importpath = "github.com/DataDog/datadog-agent/internal/tools/modformatter",
7+
visibility = ["//visibility:private"],
8+
deps = [
9+
"@org_golang_x_mod//modfile",
10+
"@org_golang_x_mod//module",
11+
],
12+
)
13+
14+
go_binary(
15+
name = "modformatter",
16+
embed = [":modformatter_lib"],
17+
visibility = ["//:__subpackages__"],
18+
)

0 commit comments

Comments
 (0)