Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci/goimports: group cilium/ebpf imports after 3rd party imports #1541

Merged
merged 1 commit into from
Aug 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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