Skip to content

Commit 52ed4eb

Browse files
committed
Add linux build tags to Linux-only fakes
The CgroupResolver and NftablesConn interfaces are defined in nftables_firewall.go which has //go:build linux. Their generated fakes must also have the linux build tag to prevent compilation errors on macOS and Windows.
1 parent 65da325 commit 52ed4eb

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

platform/firewall/firewallfakes/fake_cgroup_resolver.go

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

platform/firewall/firewallfakes/fake_nftables_conn.go

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)