From 6e3db931d86cf4d9f50ac679548db4078c64ac13 Mon Sep 17 00:00:00 2001 From: Ravi Chamarthy Date: Fri, 27 Oct 2023 04:27:24 +0000 Subject: [PATCH] move to machine.run.io Signed-off-by: Ravi Chamarthy --- .github/workflows/build.yml | 2 +- README.md | 8 ++++---- demo/disk.go | 6 +++--- demo/lvm.go | 4 ++-- demo/megaraid.go | 2 +- demo/misc.go | 6 +++--- disk.go | 2 +- disk_test.go | 4 ++-- go.mod | 2 +- guid_test.go | 4 ++-- linux/disk.go | 4 ++-- linux/disk_test.go | 4 ++-- linux/lvm.go | 2 +- linux/lvm_test.go | 2 +- linux/root_test.go | 6 +++--- linux/system.go | 4 ++-- linux/system_test.go | 4 ++-- linux/util.go | 2 +- linux/util_test.go | 2 +- lvm_test.go | 2 +- megaraid/linux.go | 2 +- mockos/lvm.go | 2 +- mockos/lvm_test.go | 6 +++--- mockos/system.go | 2 +- mockos/system_test.go | 6 +++--- partid/partid_test.go | 2 +- ptimg/main.go | 6 +++--- 27 files changed, 49 insertions(+), 49 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fb02c50..c5bc6d8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -43,5 +43,5 @@ jobs: if: success() uses: codecov/codecov-action@v1.0.0 with: - token: 78b19480-8cfa-4f32-8448-b972a29a8f46 + token: 78b19480-8cfa-4f32-8448-b972a29a8f46 file: ./coverage-all.txt diff --git a/README.md b/README.md index 2b8c113..7275279 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ Disk Operations API in Go -[![Actions Status](https://github.com/anuvu/disko/workflows/Build/badge.svg)](https://github.com/anuvu/disko/actions) -[![Actions Status](https://github.com/anuvu/disko/workflows/Lint/badge.svg)](https://github.com/anuvu/disko/actions) -[![codecov](https://codecov.io/gh/anuvu/disko/branch/master/graph/badge.svg)](https://codecov.io/gh/anuvu/disko) -[![Go Report Card](https://goreportcard.com/badge/github.com/anuvu/disko)](https://goreportcard.com/report/github.com/anuvu/disko) \ No newline at end of file +[![Actions Status](https://machinerun.io/disko/workflows/Build/badge.svg)](https://machinerun.io/disko/actions) +[![Actions Status](https://machinerun.io/disko/workflows/Lint/badge.svg)](https://machinerun.io/disko/actions) +[![codecov](https://codecov.io/gh/project-machine/disko/graph/badge.svg?token=OWZk2EXt3x)](https://codecov.io/gh/project-machine/disko) +[![Go Report Card](https://goreportcard.com/badge/machinerun.io/disko)](https://goreportcard.com/report/machinerun.io/disko) \ No newline at end of file diff --git a/demo/disk.go b/demo/disk.go index e718cbb..243af03 100644 --- a/demo/disk.go +++ b/demo/disk.go @@ -5,9 +5,9 @@ import ( "fmt" "sort" - "github.com/anuvu/disko" - "github.com/anuvu/disko/linux" - "github.com/anuvu/disko/partid" + "machinerun.io/disko" + "machinerun.io/disko/linux" + "machinerun.io/disko/partid" "github.com/urfave/cli/v2" ) diff --git a/demo/lvm.go b/demo/lvm.go index c2d836a..a4b0370 100644 --- a/demo/lvm.go +++ b/demo/lvm.go @@ -4,8 +4,8 @@ import ( "encoding/json" "fmt" - "github.com/anuvu/disko" - "github.com/anuvu/disko/linux" + "machinerun.io/disko" + "machinerun.io/disko/linux" "github.com/urfave/cli/v2" ) diff --git a/demo/megaraid.go b/demo/megaraid.go index 30b8e96..3c11f90 100644 --- a/demo/megaraid.go +++ b/demo/megaraid.go @@ -5,7 +5,7 @@ import ( "fmt" "strconv" - "github.com/anuvu/disko/megaraid" + "machinerun.io/disko/megaraid" "github.com/urfave/cli/v2" ) diff --git a/demo/misc.go b/demo/misc.go index 3df7c90..52f6519 100644 --- a/demo/misc.go +++ b/demo/misc.go @@ -6,9 +6,9 @@ import ( "path" "regexp" - "github.com/anuvu/disko" - "github.com/anuvu/disko/linux" - "github.com/anuvu/disko/partid" + "machinerun.io/disko" + "machinerun.io/disko/linux" + "machinerun.io/disko/partid" "github.com/urfave/cli/v2" ) diff --git a/disk.go b/disk.go index de4e6cf..eccad53 100644 --- a/disk.go +++ b/disk.go @@ -6,7 +6,7 @@ import ( "sort" "strings" - "github.com/anuvu/disko/partid" + "machinerun.io/disko/partid" ) // DiskType enumerates supported disk types. diff --git a/disk_test.go b/disk_test.go index da35727..3b90f3d 100644 --- a/disk_test.go +++ b/disk_test.go @@ -7,8 +7,8 @@ import ( "strings" "testing" - "github.com/anuvu/disko" - "github.com/anuvu/disko/partid" + "machinerun.io/disko" + "machinerun.io/disko/partid" ) func TestFreeSpaceSize(t *testing.T) { diff --git a/go.mod b/go.mod index b292fdb..9ff4d53 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/anuvu/disko +module machinerun.io/disko go 1.13 diff --git a/guid_test.go b/guid_test.go index b908153..2834351 100644 --- a/guid_test.go +++ b/guid_test.go @@ -4,8 +4,8 @@ import ( "regexp" "testing" - "github.com/anuvu/disko" - "github.com/anuvu/disko/partid" + "machinerun.io/disko" + "machinerun.io/disko/partid" ) func TestStringRoundtrip(t *testing.T) { diff --git a/linux/disk.go b/linux/disk.go index 29590ff..d90c072 100644 --- a/linux/disk.go +++ b/linux/disk.go @@ -14,8 +14,8 @@ import ( "syscall" "unicode/utf16" - "github.com/anuvu/disko" - "github.com/anuvu/disko/partid" + "machinerun.io/disko" + "machinerun.io/disko/partid" "github.com/rekby/gpt" "github.com/rekby/mbr" "golang.org/x/sys/unix" diff --git a/linux/disk_test.go b/linux/disk_test.go index c935952..6c5cef9 100644 --- a/linux/disk_test.go +++ b/linux/disk_test.go @@ -8,8 +8,8 @@ import ( "path" "testing" - "github.com/anuvu/disko" - "github.com/anuvu/disko/partid" + "machinerun.io/disko" + "machinerun.io/disko/partid" "github.com/stretchr/testify/assert" ) diff --git a/linux/lvm.go b/linux/lvm.go index 593f3a1..6936bf5 100644 --- a/linux/lvm.go +++ b/linux/lvm.go @@ -8,7 +8,7 @@ import ( "path" "strings" - "github.com/anuvu/disko" + "machinerun.io/disko" ) const pvMetaDataSize = 128 * disko.Mebibyte diff --git a/linux/lvm_test.go b/linux/lvm_test.go index 45add33..805a102 100644 --- a/linux/lvm_test.go +++ b/linux/lvm_test.go @@ -3,7 +3,7 @@ package linux import ( "testing" - "github.com/anuvu/disko" + "machinerun.io/disko" ) //nolint:funlen diff --git a/linux/root_test.go b/linux/root_test.go index 106a5d9..2be7e73 100644 --- a/linux/root_test.go +++ b/linux/root_test.go @@ -11,9 +11,9 @@ import ( "strings" "testing" - "github.com/anuvu/disko" - "github.com/anuvu/disko/linux" - "github.com/anuvu/disko/partid" + "machinerun.io/disko" + "machinerun.io/disko/linux" + "machinerun.io/disko/partid" "github.com/stretchr/testify/assert" "golang.org/x/sys/unix" ) diff --git a/linux/system.go b/linux/system.go index 72a9501..92b2099 100644 --- a/linux/system.go +++ b/linux/system.go @@ -10,8 +10,8 @@ import ( "strings" "syscall" - "github.com/anuvu/disko" - "github.com/anuvu/disko/megaraid" + "machinerun.io/disko" + "machinerun.io/disko/megaraid" "golang.org/x/sys/unix" ) diff --git a/linux/system_test.go b/linux/system_test.go index 9cc9655..e0cd18f 100644 --- a/linux/system_test.go +++ b/linux/system_test.go @@ -7,8 +7,8 @@ import ( "path" "testing" - "github.com/anuvu/disko" - "github.com/anuvu/disko/partid" + "machinerun.io/disko" + "machinerun.io/disko/partid" "github.com/stretchr/testify/assert" ) diff --git a/linux/util.go b/linux/util.go index 8141d52..c591d3b 100644 --- a/linux/util.go +++ b/linux/util.go @@ -13,7 +13,7 @@ import ( "strings" "syscall" - "github.com/anuvu/disko" + "machinerun.io/disko" "github.com/pkg/errors" ) diff --git a/linux/util_test.go b/linux/util_test.go index 56325c4..b0f5d19 100644 --- a/linux/util_test.go +++ b/linux/util_test.go @@ -5,7 +5,7 @@ import ( "os" "testing" - "github.com/anuvu/disko" + "machinerun.io/disko" "github.com/stretchr/testify/assert" ) diff --git a/lvm_test.go b/lvm_test.go index 853d678..c7e0490 100644 --- a/lvm_test.go +++ b/lvm_test.go @@ -6,7 +6,7 @@ import ( "strings" "testing" - "github.com/anuvu/disko" + "machinerun.io/disko" ) var valid = map[string]disko.LVType{ diff --git a/megaraid/linux.go b/megaraid/linux.go index 06c42cd..e813710 100644 --- a/megaraid/linux.go +++ b/megaraid/linux.go @@ -42,7 +42,7 @@ func NameByDiskID(id int) (string, error) { // given ID, we expect a single file in: // /0000:05:00.0/host0/target0:0:/0:0::0/block/ // Note: This does not work for some megaraid controllers such as SAS3508 - // See https://github.com/anuvu/disko/issues/101 + // See https://machinerun.io/disko/issues/101 idStr := fmt.Sprintf("%d", id) blkDir := sysDriverMegaRaidSAS + "/*/host*/target0:0:" + idStr + "/0:0:" + idStr + ":0/block/*" matches, err := filepath.Glob(blkDir) diff --git a/mockos/lvm.go b/mockos/lvm.go index c8013b8..668655b 100644 --- a/mockos/lvm.go +++ b/mockos/lvm.go @@ -4,7 +4,7 @@ import ( "fmt" "path" - "github.com/anuvu/disko" + "machinerun.io/disko" ) type mockLVM struct { diff --git a/mockos/lvm_test.go b/mockos/lvm_test.go index f903cef..f82011e 100644 --- a/mockos/lvm_test.go +++ b/mockos/lvm_test.go @@ -4,9 +4,9 @@ import ( "strings" "testing" - "github.com/anuvu/disko" - "github.com/anuvu/disko/mockos" - "github.com/anuvu/disko/partid" + "machinerun.io/disko" + "machinerun.io/disko/mockos" + "machinerun.io/disko/partid" . "github.com/smartystreets/goconvey/convey" ) diff --git a/mockos/system.go b/mockos/system.go index bfc7aae..3d93936 100644 --- a/mockos/system.go +++ b/mockos/system.go @@ -5,7 +5,7 @@ import ( "fmt" "io/ioutil" - "github.com/anuvu/disko" + "machinerun.io/disko" ) // System returns a mock os implementation of the disk.System interface. diff --git a/mockos/system_test.go b/mockos/system_test.go index d6bf4d1..829605c 100644 --- a/mockos/system_test.go +++ b/mockos/system_test.go @@ -3,9 +3,9 @@ package mockos_test import ( "testing" - "github.com/anuvu/disko" - "github.com/anuvu/disko/mockos" - "github.com/anuvu/disko/partid" + "machinerun.io/disko" + "machinerun.io/disko/mockos" + "machinerun.io/disko/partid" . "github.com/smartystreets/goconvey/convey" ) diff --git a/partid/partid_test.go b/partid/partid_test.go index 48fd8b9..2a9365a 100644 --- a/partid/partid_test.go +++ b/partid/partid_test.go @@ -3,7 +3,7 @@ package partid_test import ( "testing" - "github.com/anuvu/disko/partid" + "machinerun.io/disko/partid" ) func TestPartID(t *testing.T) { diff --git a/ptimg/main.go b/ptimg/main.go index 01c9cb3..4fb5cfb 100644 --- a/ptimg/main.go +++ b/ptimg/main.go @@ -16,9 +16,9 @@ import ( "syscall" "time" - "github.com/anuvu/disko" - "github.com/anuvu/disko/linux" - "github.com/anuvu/disko/partid" + "machinerun.io/disko" + "machinerun.io/disko/linux" + "machinerun.io/disko/partid" "github.com/urfave/cli/v2" )