From 0ea387f4ec1323920cfe10f80daca7f5987c2208 Mon Sep 17 00:00:00 2001 From: Martin Smith Date: Fri, 28 Feb 2025 19:30:56 +0000 Subject: [PATCH] Fix import ordering. --- cmd/restic/global.go | 3 +-- internal/restic/node.go | 3 +-- internal/restic/tag_list_test.go | 3 ++- internal/ui/table/table.go | 1 - 4 files changed, 4 insertions(+), 6 deletions(-) diff --git a/cmd/restic/global.go b/cmd/restic/global.go index a8270e20d..b60f39b18 100644 --- a/cmd/restic/global.go +++ b/cmd/restic/global.go @@ -6,6 +6,7 @@ import ( "fmt" "io" "os" + "os/exec" "path/filepath" "runtime" "strconv" @@ -38,8 +39,6 @@ import ( "github.com/restic/restic/internal/errors" - "os/exec" - "golang.org/x/term" ) diff --git a/internal/restic/node.go b/internal/restic/node.go index c572996a5..d690f0de4 100644 --- a/internal/restic/node.go +++ b/internal/restic/node.go @@ -1,6 +1,7 @@ package restic import ( + "bytes" "encoding/json" "fmt" "os" @@ -13,8 +14,6 @@ import ( "github.com/restic/restic/internal/errors" - "bytes" - "github.com/restic/restic/internal/debug" ) diff --git a/internal/restic/tag_list_test.go b/internal/restic/tag_list_test.go index d7a93474d..d1cf6a9c3 100644 --- a/internal/restic/tag_list_test.go +++ b/internal/restic/tag_list_test.go @@ -1,8 +1,9 @@ package restic import ( - rtest "github.com/restic/restic/internal/test" "testing" + + rtest "github.com/restic/restic/internal/test" ) func TestTagLists_Flatten(t *testing.T) { diff --git a/internal/ui/table/table.go b/internal/ui/table/table.go index 1c535cadb..264a302a2 100644 --- a/internal/ui/table/table.go +++ b/internal/ui/table/table.go @@ -4,7 +4,6 @@ import ( "bytes" "io" "strings" - "text/template" "github.com/restic/restic/internal/ui"