Skip to content

Commit

Permalink
ci/goimports: group cilium/ebpf imports after 3rd party imports
Browse files Browse the repository at this point in the history
Signed-off-by: Robin Gögge <r.goegge@isovalent.com>
  • Loading branch information
rgo3 authored and ti-mo committed Aug 14, 2024
1 parent f8b9a8c commit cc8076c
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 5 deletions.
6 changes: 6 additions & 0 deletions .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,9 @@ linters:
- typecheck
- unused
- gofmt
linters-settings:
goimports:
# A comma-separated list of prefixes, which, if set, checks import paths
# with the given prefixes are grouped after 3rd-party packages.
# Default: ""
local-prefixes: github.com/cilium/ebpf
3 changes: 2 additions & 1 deletion btf/types_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ import (
"reflect"
"testing"

"github.com/cilium/ebpf/internal/testutils"
"github.com/go-quicktest/qt"
"github.com/google/go-cmp/cmp"

"github.com/cilium/ebpf/internal/testutils"
)

func TestSizeof(t *testing.T) {
Expand Down
3 changes: 2 additions & 1 deletion cmd/bpf2go/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@ import (
"strings"
"testing"

"github.com/go-quicktest/qt"

"github.com/cilium/ebpf/cmd/bpf2go/gen"
"github.com/cilium/ebpf/cmd/bpf2go/internal"
"github.com/cilium/ebpf/internal/testutils"
"github.com/go-quicktest/qt"
)

const minimalSocketFilter = `__attribute__((section("socket"), used)) int main() { return 0; }`
Expand Down
3 changes: 2 additions & 1 deletion internal/epoll/poller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ import (
"testing"
"time"

"github.com/cilium/ebpf/internal/unix"
"github.com/go-quicktest/qt"

"github.com/cilium/ebpf/internal/unix"
)

func TestPoller(t *testing.T) {
Expand Down
3 changes: 2 additions & 1 deletion link/uprobe_multi_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ import (
"os/exec"
"testing"

"github.com/go-quicktest/qt"

"github.com/cilium/ebpf"
"github.com/cilium/ebpf/internal/testutils"
"github.com/go-quicktest/qt"
)

func TestUprobeMulti(t *testing.T) {
Expand Down
3 changes: 2 additions & 1 deletion link/xdp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ import (
"math"
"testing"

"github.com/go-quicktest/qt"

"github.com/cilium/ebpf"
"github.com/cilium/ebpf/internal/testutils"
"github.com/go-quicktest/qt"
)

const IfIndexLO = 1
Expand Down

0 comments on commit cc8076c

Please sign in to comment.