From 2d9404b1317880d538b4c0957754a6f1cd4f0df9 Mon Sep 17 00:00:00 2001 From: Evan Lezar Date: Mon, 30 Oct 2023 15:37:07 +0100 Subject: [PATCH] Rename go module to github.com/NVIDIA/go-nvlib Signed-off-by: Evan Lezar --- Makefile | 2 +- go.mod | 2 +- pkg/nvlib/device/api.go | 2 +- pkg/nvlib/device/device.go | 2 +- pkg/nvlib/device/mig_device.go | 2 +- pkg/nvlib/device/mig_profile.go | 2 +- pkg/nvlib/device/mig_profile_test.go | 2 +- pkg/nvmdev/mock.go | 5 +++-- pkg/nvmdev/nvmdev.go | 2 +- pkg/nvpci/config.go | 2 +- pkg/nvpci/mmio/mmio.go | 2 +- pkg/nvpci/mmio/mock.go | 2 +- pkg/nvpci/mock.go | 2 +- pkg/nvpci/nvpci.go | 2 +- pkg/nvpci/resources.go | 2 +- 15 files changed, 17 insertions(+), 16 deletions(-) diff --git a/Makefile b/Makefile index 0364162..bfae86b 100644 --- a/Makefile +++ b/Makefile @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -MODULE := gitlab.com/nvidia/cloud-native/go-nvlib +MODULE := github.com/NVIDIA/go-nvlib DOCKER ?= docker diff --git a/go.mod b/go.mod index 70f4cc0..721ce67 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module gitlab.com/nvidia/cloud-native/go-nvlib +module github.com/NVIDIA/go-nvlib go 1.20 diff --git a/pkg/nvlib/device/api.go b/pkg/nvlib/device/api.go index 777789b..57db859 100644 --- a/pkg/nvlib/device/api.go +++ b/pkg/nvlib/device/api.go @@ -17,7 +17,7 @@ package device import ( - "gitlab.com/nvidia/cloud-native/go-nvlib/pkg/nvml" + "github.com/NVIDIA/go-nvlib/pkg/nvml" ) // Interface provides the API to the 'device' package diff --git a/pkg/nvlib/device/device.go b/pkg/nvlib/device/device.go index 4183095..49734e8 100644 --- a/pkg/nvlib/device/device.go +++ b/pkg/nvlib/device/device.go @@ -19,7 +19,7 @@ package device import ( "fmt" - "gitlab.com/nvidia/cloud-native/go-nvlib/pkg/nvml" + "github.com/NVIDIA/go-nvlib/pkg/nvml" ) // Device defines the set of extended functions associated with a device.Device diff --git a/pkg/nvlib/device/mig_device.go b/pkg/nvlib/device/mig_device.go index 0742a71..bbe3bb6 100644 --- a/pkg/nvlib/device/mig_device.go +++ b/pkg/nvlib/device/mig_device.go @@ -19,7 +19,7 @@ package device import ( "fmt" - "gitlab.com/nvidia/cloud-native/go-nvlib/pkg/nvml" + "github.com/NVIDIA/go-nvlib/pkg/nvml" ) // MigDevice defines the set of extended functions associated with a MIG device diff --git a/pkg/nvlib/device/mig_profile.go b/pkg/nvlib/device/mig_profile.go index 13a5dbf..6f27af6 100644 --- a/pkg/nvlib/device/mig_profile.go +++ b/pkg/nvlib/device/mig_profile.go @@ -23,7 +23,7 @@ import ( "strconv" "strings" - "gitlab.com/nvidia/cloud-native/go-nvlib/pkg/nvml" + "github.com/NVIDIA/go-nvlib/pkg/nvml" ) const ( diff --git a/pkg/nvlib/device/mig_profile_test.go b/pkg/nvlib/device/mig_profile_test.go index 4bd3eda..d13feb8 100644 --- a/pkg/nvlib/device/mig_profile_test.go +++ b/pkg/nvlib/device/mig_profile_test.go @@ -20,8 +20,8 @@ import ( "fmt" "testing" + "github.com/NVIDIA/go-nvlib/pkg/nvml" "github.com/stretchr/testify/require" - "gitlab.com/nvidia/cloud-native/go-nvlib/pkg/nvml" ) type MigProfileInfoWrapper struct { diff --git a/pkg/nvmdev/mock.go b/pkg/nvmdev/mock.go index 0d25359..2a53d17 100644 --- a/pkg/nvmdev/mock.go +++ b/pkg/nvmdev/mock.go @@ -18,10 +18,11 @@ package nvmdev import ( "fmt" - "gitlab.com/nvidia/cloud-native/go-nvlib/pkg/nvpci" - "gitlab.com/nvidia/cloud-native/go-nvlib/pkg/nvpci/bytes" "os" "path/filepath" + + "github.com/NVIDIA/go-nvlib/pkg/nvpci" + "github.com/NVIDIA/go-nvlib/pkg/nvpci/bytes" ) // MockNvmdev mock mdev device diff --git a/pkg/nvmdev/nvmdev.go b/pkg/nvmdev/nvmdev.go index 24ec228..9261258 100644 --- a/pkg/nvmdev/nvmdev.go +++ b/pkg/nvmdev/nvmdev.go @@ -25,7 +25,7 @@ import ( "strconv" "strings" - "gitlab.com/nvidia/cloud-native/go-nvlib/pkg/nvpci" + "github.com/NVIDIA/go-nvlib/pkg/nvpci" ) const ( diff --git a/pkg/nvpci/config.go b/pkg/nvpci/config.go index 0971df4..e25e72f 100644 --- a/pkg/nvpci/config.go +++ b/pkg/nvpci/config.go @@ -20,7 +20,7 @@ import ( "fmt" "os" - "gitlab.com/nvidia/cloud-native/go-nvlib/pkg/nvpci/bytes" + "github.com/NVIDIA/go-nvlib/pkg/nvpci/bytes" ) const ( diff --git a/pkg/nvpci/mmio/mmio.go b/pkg/nvpci/mmio/mmio.go index 602486e..1535fa0 100644 --- a/pkg/nvpci/mmio/mmio.go +++ b/pkg/nvpci/mmio/mmio.go @@ -22,7 +22,7 @@ import ( "syscall" "unsafe" - "gitlab.com/nvidia/cloud-native/go-nvlib/pkg/nvpci/bytes" + "github.com/NVIDIA/go-nvlib/pkg/nvpci/bytes" ) // Mmio memory map a region diff --git a/pkg/nvpci/mmio/mock.go b/pkg/nvpci/mmio/mock.go index 42a86b1..57151b3 100644 --- a/pkg/nvpci/mmio/mock.go +++ b/pkg/nvpci/mmio/mock.go @@ -19,7 +19,7 @@ package mmio import ( "fmt" - "gitlab.com/nvidia/cloud-native/go-nvlib/pkg/nvpci/bytes" + "github.com/NVIDIA/go-nvlib/pkg/nvpci/bytes" ) type mockMmio struct { diff --git a/pkg/nvpci/mock.go b/pkg/nvpci/mock.go index 8f35fb6..e422712 100644 --- a/pkg/nvpci/mock.go +++ b/pkg/nvpci/mock.go @@ -21,7 +21,7 @@ import ( "os" "path/filepath" - "gitlab.com/nvidia/cloud-native/go-nvlib/pkg/nvpci/bytes" + "github.com/NVIDIA/go-nvlib/pkg/nvpci/bytes" ) // MockNvpci mock pci device diff --git a/pkg/nvpci/nvpci.go b/pkg/nvpci/nvpci.go index f5a7826..5210ff5 100644 --- a/pkg/nvpci/nvpci.go +++ b/pkg/nvpci/nvpci.go @@ -25,7 +25,7 @@ import ( "strconv" "strings" - "gitlab.com/nvidia/cloud-native/go-nvlib/pkg/pciids" + "github.com/NVIDIA/go-nvlib/pkg/pciids" ) const ( diff --git a/pkg/nvpci/resources.go b/pkg/nvpci/resources.go index 02a0430..6c6e53e 100644 --- a/pkg/nvpci/resources.go +++ b/pkg/nvpci/resources.go @@ -20,7 +20,7 @@ import ( "fmt" "sort" - "gitlab.com/nvidia/cloud-native/go-nvlib/pkg/nvpci/mmio" + "github.com/NVIDIA/go-nvlib/pkg/nvpci/mmio" ) const (