Skip to content

Commit bcdf2ca

Browse files
committed
Make lint happy
Mostly new-style Go build directives Signed-off-by: Bryan Boreham <[email protected]>
1 parent 3fb47b9 commit bcdf2ca

16 files changed

+16
-0
lines changed

app/multitenant/collector.go

+1
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ type pendingEntry struct {
107107
older []*report.Report
108108
}
109109

110+
// NewLiveCollector makes a new LiveCollector from the supplied config.
110111
func NewLiveCollector(config LiveCollectorConfig) (app.Collector, error) {
111112
c := &liveCollector{
112113
cfg: config,

probe/docker/network_linux.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// withNetNS function requires a fix that first appeared in Go version 1.10
2+
//go:build go1.10
23
// +build go1.10
34

45
package docker

probe/docker/network_others.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build !linux
12
// +build !linux
23

34
package docker

probe/endpoint/connection_tracker.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build linux
12
// +build linux
23

34
package endpoint

probe/endpoint/conntrack.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build linux
12
// +build linux
23

34
package endpoint

probe/endpoint/dns_snooper.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build (linux && amd64) || (linux && ppc64le)
12
// +build linux,amd64 linux,ppc64le
23

34
// Build constraint to use this file for amd64 & ppc64le on Linux

probe/endpoint/dns_snooper_others.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build darwin || arm || arm64 || s390x
12
// +build darwin arm arm64 s390x
23

34
// Cross-compiling the snooper requires having pcap binaries,

probe/endpoint/dns_snooper_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build (linux && amd64) || (linux && ppc64le)
12
// +build linux,amd64 linux,ppc64le
23

34
package endpoint

probe/endpoint/ebpf.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build linux
12
// +build linux
23

34
package endpoint

probe/endpoint/ebpf_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build linux
12
// +build linux
23

34
package endpoint

probe/endpoint/nat.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build linux
12
// +build linux
23

34
package endpoint

probe/endpoint/nat_internal_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build linux
12
// +build linux
23

34
package endpoint

probe/endpoint/reporter_linux.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build linux
12
// +build linux
23

34
package endpoint

probe/endpoint/reporter_other.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build !linux
12
// +build !linux
23

34
package endpoint

prog/tools.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// Ensure go mod fetches files needed to build the Docker container;
22
// the build constraint ensures this file is ignored
3+
//go:build tools
34
// +build tools
45

56
package report

report/tools.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// Ensure go mod fetches files needed at code generation time;
22
// the build constraint ensures this file is ignored
3+
//go:build tools
34
// +build tools
45

56
package report

0 commit comments

Comments
 (0)