diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 06c891a..f60f695 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,8 +9,8 @@ jobs: go: [ "1.21", "1.22" ] runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v3 - - uses: actions/setup-go@v4 + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 with: go-version: ${{ matrix.go }} - name: install dependencies @@ -32,8 +32,8 @@ jobs: - name: staticcheck uses: dominikh/staticcheck-action@v1.3.0 with: - version: "2023.1.5" + version: "2023.1.6" install-go: false cache-key: ${{ matrix.go }} - - run: "sudo go test ./..." + - run: "go test -exec sudo ./..." diff --git a/go.mod b/go.mod index b6565f8..e24c5a7 100644 --- a/go.mod +++ b/go.mod @@ -6,6 +6,7 @@ require ( github.com/cilium/ebpf v0.12.3 github.com/vishvananda/netlink v1.2.1-beta.2.0.20230807190133-6afddb37c1f0 github.com/vishvananda/netns v0.0.4 - golang.org/x/exp v0.0.0-20230817173708-d852ddb80c63 golang.org/x/sys v0.17.0 ) + +require golang.org/x/exp v0.0.0-20230817173708-d852ddb80c63 // indirect diff --git a/manager.go b/manager.go index dcd1172..29b0ccb 100644 --- a/manager.go +++ b/manager.go @@ -4,13 +4,13 @@ import ( "errors" "fmt" "io" + "maps" "os" + "slices" "sync" "time" "github.com/cilium/ebpf" - "golang.org/x/exp/maps" - "golang.org/x/exp/slices" "golang.org/x/sys/unix" )