Skip to content

Commit

Permalink
fix gofmt errors
Browse files Browse the repository at this point in the history
Signed-off-by: Ravi Chamarthy <ravi@chamarthy.dev>
  • Loading branch information
rchamarthy committed Oct 27, 2023
1 parent 2d78e3a commit 7c84241
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion demo/misc.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import (
"path"
"regexp"

"github.com/urfave/cli/v2"
"machinerun.io/disko"
"machinerun.io/disko/linux"
"machinerun.io/disko/partid"
"github.com/urfave/cli/v2"
)

const partitionName = "updown"
Expand Down
4 changes: 2 additions & 2 deletions linux/disk.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ import (
"syscall"
"unicode/utf16"

"machinerun.io/disko"
"machinerun.io/disko/partid"
"github.com/rekby/gpt"
"github.com/rekby/mbr"
"golang.org/x/sys/unix"
"machinerun.io/disko"
"machinerun.io/disko/partid"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion linux/disk_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import (
"path"
"testing"

"github.com/stretchr/testify/assert"
"machinerun.io/disko"
"machinerun.io/disko/partid"
"github.com/stretchr/testify/assert"
)

//nolint:funlen
Expand Down
4 changes: 2 additions & 2 deletions linux/root_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ import (
"strings"
"testing"

"github.com/stretchr/testify/assert"
"golang.org/x/sys/unix"
"machinerun.io/disko"
"machinerun.io/disko/linux"
"machinerun.io/disko/partid"
"github.com/stretchr/testify/assert"
"golang.org/x/sys/unix"
)

const MiB = 1024 * 1024
Expand Down
2 changes: 1 addition & 1 deletion linux/system.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import (
"strings"
"syscall"

"golang.org/x/sys/unix"
"machinerun.io/disko"
"machinerun.io/disko/megaraid"
"golang.org/x/sys/unix"
)

type linuxSystem struct {
Expand Down
2 changes: 1 addition & 1 deletion linux/system_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import (
"path"
"testing"

"github.com/stretchr/testify/assert"
"machinerun.io/disko"
"machinerun.io/disko/partid"
"github.com/stretchr/testify/assert"
)

func TestGetDiskProperties(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion linux/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import (
"strings"
"syscall"

"machinerun.io/disko"
"github.com/pkg/errors"
"machinerun.io/disko"
)

// GetUdevInfo return a UdevInfo for the device with kernel name kname.
Expand Down
2 changes: 1 addition & 1 deletion linux/util_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"os"
"testing"

"machinerun.io/disko"
"github.com/stretchr/testify/assert"
"machinerun.io/disko"
)

func TestParseUdevInfo(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion mockos/system_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ package mockos_test
import (
"testing"

. "github.com/smartystreets/goconvey/convey"
"machinerun.io/disko"
"machinerun.io/disko/mockos"
"machinerun.io/disko/partid"
. "github.com/smartystreets/goconvey/convey"
)

//nolint:funlen
Expand Down
2 changes: 1 addition & 1 deletion ptimg/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ import (
"syscall"
"time"

"github.com/urfave/cli/v2"
"machinerun.io/disko"
"machinerun.io/disko/linux"
"machinerun.io/disko/partid"
"github.com/urfave/cli/v2"
)

var version string
Expand Down

0 comments on commit 7c84241

Please sign in to comment.