Skip to content

Commit 5f582e9

Browse files
committed
pkg/emulation: add linux build tag for elf
Otherwise, golangci-lint on freebsd complains: > pkg/emulation/elf.go:14:6: type elfPlatform is unused (unused) > type elfPlatform struct { > ^ > pkg/emulation/elf.go:28:2: var knownELFPlatformHeaders is unused (unused) > knownELFPlatformHeaders = make(map[string][][]byte) > ^ > pkg/emulation/elf.go:29:2: var knownELFPlatformHeadersOnce is unused (unused) > knownELFPlatformHeadersOnce sync.Once > ^ > pkg/emulation/elf.go:33:2: var knownELFPlatforms is unused (unused) > knownELFPlatforms = []elfPlatform{ > ^ > pkg/emulation/elf.go:157:23: func (*elfPlatform).header is unused (unused) > func (e *elfPlatform) header() ([][]byte, error) { > ^ > pkg/emulation/elf.go:208:6: func getKnownELFPlatformHeaders is unused (unused) > func getKnownELFPlatformHeaders() map[string][][]byte { > ^ Signed-off-by: Kir Kolyshkin <[email protected]>
1 parent 8c0c1c8 commit 5f582e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/emulation/elf.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//go:build !remote
1+
//go:build linux && !remote
22

33
package emulation
44

0 commit comments

Comments
 (0)