Skip to content

Commit 1eecf1b

Browse files
authored
Add BUILD file for pkg/network/protocols/http/gotls/lookup/internal (#54658)
### What does this PR do? Add BUILD file for pkg/network/protocols/http/gotls/lookup/internal. Remove the `go:build nobuild` tag preventing this from being seen by gazelle. ### Motivation Cleaning up. ### Describe how you validated your changes ``` bazel build //pkg/network/protocols/http/gotls/lookup/internal:generate_luts ``` Co-authored-by: tony.aiuto <tony.aiuto@datadoghq.com>
1 parent 27fda3f commit 1eecf1b

2 files changed

Lines changed: 34 additions & 1 deletion

File tree

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
load("@rules_go//go:def.bzl", "go_binary", "go_library")
2+
3+
go_binary(
4+
name = "generate_luts",
5+
embed = [":internal_lib"],
6+
tags = ["manual"],
7+
target_compatible_with = ["@platforms//os:linux"],
8+
visibility = ["//visibility:private"],
9+
)
10+
11+
go_library(
12+
name = "internal_lib",
13+
srcs = ["generate_luts.go"],
14+
importpath = "github.com/DataDog/datadog-agent/pkg/network/protocols/http/gotls/lookup/internal",
15+
target_compatible_with = ["@platforms//os:linux"],
16+
visibility = ["//visibility:private"],
17+
deps = select({
18+
"@rules_go//go/platform:android": [
19+
"//pkg/network/go/bininspect",
20+
"//pkg/network/go/goversion",
21+
"//pkg/network/go/lutgen",
22+
"//pkg/util/safeelf",
23+
],
24+
"@rules_go//go/platform:linux": [
25+
"//pkg/network/go/bininspect",
26+
"//pkg/network/go/goversion",
27+
"//pkg/network/go/lutgen",
28+
"//pkg/util/safeelf",
29+
],
30+
"//conditions:default": [],
31+
}),
32+
)

pkg/network/protocols/http/gotls/lookup/internal/generate_luts.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
// This product includes software developed at Datadog (https://www.datadoghq.com/).
44
// Copyright 2022-present Datadog, Inc.
55

6-
//go:build ignore
6+
//go:build linux
77

8+
// Package main for luts generator.
89
package main
910

1011
import (

0 commit comments

Comments
 (0)