Skip to content

Commit 708642f

Browse files
authored
Merge branch 'main' into feature/modernize_update
2 parents 2d7d599 + f9f86fd commit 708642f

4 files changed

Lines changed: 19 additions & 2 deletions

File tree

.github/workflows/test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
format: auto
2323
- uses: golangci/golangci-lint-action@v9
2424
with:
25-
version: v2.3.0
25+
version: v2.10.0
2626
args: -v
2727
verify-vendor:
2828
name: Verify vendor directory

.golangci.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,21 @@ linters:
2525
pkg: ^github.com/vishvananda/netlink$
2626
msg: Use internal netlinksafe package for EINTR handling.
2727
analyze-types: true
28+
revive:
29+
max-open-files: 2048
30+
enable-default-rules: true
31+
rules:
32+
- name: var-naming
33+
arguments:
34+
- ["ID"] # AllowList
35+
- ["VM"] # DenyList
36+
- - skip-initialism-name-checks: true
37+
upper-case-const: true
38+
skip-package-name-checks: true
39+
skip-package-name-collision-with-go-std: true
40+
extra-bad-package-names:
41+
- helpers
42+
- models
2843
staticcheck:
2944
checks:
3045
- all

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/containernetworking/plugins
22

3-
go 1.24.2
3+
go 1.25.0
44

55
require (
66
github.com/Microsoft/hcsshim v0.13.0

pkg/ip/ipmasq_iptables_linux.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ func setupIPMasqIPTables(ipns []*net.IPNet, network, _, containerID string) erro
4242

4343
// SetupIPMasq installs iptables rules to masquerade traffic
4444
// coming from ip of ipn and going outside of ipn.
45+
//
4546
// Deprecated: This function only supports iptables. Use SetupIPMasqForNetworks, which
4647
// supports both iptables and nftables.
4748
func SetupIPMasq(ipn *net.IPNet, chain string, comment string) error {
@@ -109,6 +110,7 @@ func teardownIPMasqIPTables(ipns []*net.IPNet, network, _, containerID string) e
109110
}
110111

111112
// TeardownIPMasq undoes the effects of SetupIPMasq.
113+
//
112114
// Deprecated: This function only supports iptables. Use TeardownIPMasqForNetworks, which
113115
// supports both iptables and nftables.
114116
func TeardownIPMasq(ipn *net.IPNet, chain string, comment string) error {

0 commit comments

Comments
 (0)