diff --git a/README.md b/README.md index a09f5d5..9558b68 100644 --- a/README.md +++ b/README.md @@ -79,4 +79,4 @@ For further discussion of good and bad practices regarding commits, see: ## License -The zhmcclient package is licensed under the [Apache 2.0 License](https://github.ibm.com/zhmcclient/golang-zhmcclient/blob/master/LICENSE). \ No newline at end of file +The zhmcclient package is licensed under the [Apache 2.0 License](https://github.com/zhmcclient/golang-zhmcclient/blob/master/LICENSE). \ No newline at end of file diff --git a/go-test.sh b/go-test.sh index 54e3d35..703bb45 100644 --- a/go-test.sh +++ b/go-test.sh @@ -26,30 +26,6 @@ done coveroutput="cover.out" tmpfile="tmp.out" - -function check_env() { - - if [ "$TRAVIS" = true ]; then - if [ -z "$GH_USERNAME" ]; then - echo "github.ibm.com username missing, cannot pull private dependencies. Exiting ..." - exit 1 - fi - if [ -z "$GH_POA" ]; then - echo "github.ibm.com token missing, cannot pull private dependencies. Exiting ..." - exit 1 - fi - set_env - fi -} - -# setup git credentials for github.ibm.com so we can pull private go modules -function set_env() { - echo "Setting up git credentials for github.ibm.com..." - GIT_CRED_FILE="$(pwd)/.git-credentials" - echo "https://${GH_USERNAME}:${GH_POA}@github.ibm.com" > $GIT_CRED_FILE - git config --global credential.helper "store --file=${GIT_CRED_FILE}" -} - function run_vul_check() { package=${args[1]} go install golang.org/x/vuln/cmd/govulncheck@latest @@ -107,8 +83,6 @@ function run_unit_tests() { fi } -check_env - if [[ $f_flag == 'true' ]]; then run_unit_tests $package $file fi diff --git a/go.mod b/go.mod index da16207..2264815 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.ibm.com/zhmcclient/golang-zhmcclient +module github.com/zhmcclient/golang-zhmcclient go 1.20 diff --git a/pkg/zhmcclient/adapter_test.go b/pkg/zhmcclient/adapter_test.go index 1751ee7..992d3be 100644 --- a/pkg/zhmcclient/adapter_test.go +++ b/pkg/zhmcclient/adapter_test.go @@ -21,8 +21,8 @@ import ( . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" - . "github.ibm.com/zhmcclient/golang-zhmcclient/pkg/zhmcclient" - "github.ibm.com/zhmcclient/golang-zhmcclient/pkg/zhmcclient/fakes" + . "github.com/zhmcclient/golang-zhmcclient/pkg/zhmcclient" + "github.com/zhmcclient/golang-zhmcclient/pkg/zhmcclient/fakes" ) var _ = Describe("Adapter", func() { diff --git a/pkg/zhmcclient/client_test.go b/pkg/zhmcclient/client_test.go index 18540f1..1849439 100644 --- a/pkg/zhmcclient/client_test.go +++ b/pkg/zhmcclient/client_test.go @@ -21,7 +21,7 @@ import ( . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" - . "github.ibm.com/zhmcclient/golang-zhmcclient/pkg/zhmcclient" + . "github.com/zhmcclient/golang-zhmcclient/pkg/zhmcclient" ) var ( diff --git a/pkg/zhmcclient/cpc_test.go b/pkg/zhmcclient/cpc_test.go index 3cafdef..b5cfcfc 100644 --- a/pkg/zhmcclient/cpc_test.go +++ b/pkg/zhmcclient/cpc_test.go @@ -21,8 +21,8 @@ import ( . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" - . "github.ibm.com/zhmcclient/golang-zhmcclient/pkg/zhmcclient" - "github.ibm.com/zhmcclient/golang-zhmcclient/pkg/zhmcclient/fakes" + . "github.com/zhmcclient/golang-zhmcclient/pkg/zhmcclient" + "github.com/zhmcclient/golang-zhmcclient/pkg/zhmcclient/fakes" ) var _ = Describe("CPC", func() { diff --git a/pkg/zhmcclient/fakes/adapter.go b/pkg/zhmcclient/fakes/adapter.go index 4057070..e6a9669 100644 --- a/pkg/zhmcclient/fakes/adapter.go +++ b/pkg/zhmcclient/fakes/adapter.go @@ -17,7 +17,7 @@ package fakes import ( "sync" - "github.ibm.com/zhmcclient/golang-zhmcclient/pkg/zhmcclient" + "github.com/zhmcclient/golang-zhmcclient/pkg/zhmcclient" ) type AdapterAPI struct { diff --git a/pkg/zhmcclient/fakes/client.go b/pkg/zhmcclient/fakes/client.go index 0ce1b61..15ea726 100644 --- a/pkg/zhmcclient/fakes/client.go +++ b/pkg/zhmcclient/fakes/client.go @@ -19,7 +19,7 @@ import ( "net/url" "sync" - "github.ibm.com/zhmcclient/golang-zhmcclient/pkg/zhmcclient" + "github.com/zhmcclient/golang-zhmcclient/pkg/zhmcclient" ) type ClientAPI struct { diff --git a/pkg/zhmcclient/fakes/cpc.go b/pkg/zhmcclient/fakes/cpc.go index f754b3f..87a1948 100644 --- a/pkg/zhmcclient/fakes/cpc.go +++ b/pkg/zhmcclient/fakes/cpc.go @@ -17,7 +17,7 @@ package fakes import ( "sync" - "github.ibm.com/zhmcclient/golang-zhmcclient/pkg/zhmcclient" + "github.com/zhmcclient/golang-zhmcclient/pkg/zhmcclient" ) type CpcAPI struct { diff --git a/pkg/zhmcclient/fakes/job.go b/pkg/zhmcclient/fakes/job.go index 2b3a53e..e79eea5 100644 --- a/pkg/zhmcclient/fakes/job.go +++ b/pkg/zhmcclient/fakes/job.go @@ -17,7 +17,7 @@ package fakes import ( "sync" - "github.ibm.com/zhmcclient/golang-zhmcclient/pkg/zhmcclient" + "github.com/zhmcclient/golang-zhmcclient/pkg/zhmcclient" ) type JobAPI struct { diff --git a/pkg/zhmcclient/fakes/lpar.go b/pkg/zhmcclient/fakes/lpar.go index 0323f0c..8bc21f1 100644 --- a/pkg/zhmcclient/fakes/lpar.go +++ b/pkg/zhmcclient/fakes/lpar.go @@ -17,7 +17,7 @@ package fakes import ( "sync" - "github.ibm.com/zhmcclient/golang-zhmcclient/pkg/zhmcclient" + "github.com/zhmcclient/golang-zhmcclient/pkg/zhmcclient" ) type LparAPI struct { diff --git a/pkg/zhmcclient/fakes/nic.go b/pkg/zhmcclient/fakes/nic.go index 6aa6b18..d2bd5b6 100644 --- a/pkg/zhmcclient/fakes/nic.go +++ b/pkg/zhmcclient/fakes/nic.go @@ -17,7 +17,7 @@ package fakes import ( "sync" - "github.ibm.com/zhmcclient/golang-zhmcclient/pkg/zhmcclient" + "github.com/zhmcclient/golang-zhmcclient/pkg/zhmcclient" ) type NicAPI struct { diff --git a/pkg/zhmcclient/fakes/sgroup.go b/pkg/zhmcclient/fakes/sgroup.go index 4ba3f0f..e6f871a 100644 --- a/pkg/zhmcclient/fakes/sgroup.go +++ b/pkg/zhmcclient/fakes/sgroup.go @@ -17,7 +17,7 @@ package fakes import ( "sync" - "github.ibm.com/zhmcclient/golang-zhmcclient/pkg/zhmcclient" + "github.com/zhmcclient/golang-zhmcclient/pkg/zhmcclient" ) type StorageGroupAPI struct { diff --git a/pkg/zhmcclient/fakes/vswitch.go b/pkg/zhmcclient/fakes/vswitch.go index fb7d78d..25556f8 100644 --- a/pkg/zhmcclient/fakes/vswitch.go +++ b/pkg/zhmcclient/fakes/vswitch.go @@ -17,7 +17,7 @@ package fakes import ( "sync" - "github.ibm.com/zhmcclient/golang-zhmcclient/pkg/zhmcclient" + "github.com/zhmcclient/golang-zhmcclient/pkg/zhmcclient" ) type VirtualSwitchAPI struct { diff --git a/pkg/zhmcclient/fakes/zhmc.go b/pkg/zhmcclient/fakes/zhmc.go index d3332d0..22ae7e3 100644 --- a/pkg/zhmcclient/fakes/zhmc.go +++ b/pkg/zhmcclient/fakes/zhmc.go @@ -17,7 +17,7 @@ package fakes import ( "sync" - "github.ibm.com/zhmcclient/golang-zhmcclient/pkg/zhmcclient" + "github.com/zhmcclient/golang-zhmcclient/pkg/zhmcclient" ) type ZhmcAPI struct { diff --git a/pkg/zhmcclient/job_test.go b/pkg/zhmcclient/job_test.go index 79f674c..c580c7e 100644 --- a/pkg/zhmcclient/job_test.go +++ b/pkg/zhmcclient/job_test.go @@ -21,8 +21,8 @@ import ( . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" - . "github.ibm.com/zhmcclient/golang-zhmcclient/pkg/zhmcclient" - "github.ibm.com/zhmcclient/golang-zhmcclient/pkg/zhmcclient/fakes" + . "github.com/zhmcclient/golang-zhmcclient/pkg/zhmcclient" + "github.com/zhmcclient/golang-zhmcclient/pkg/zhmcclient/fakes" ) var _ = Describe("JOB", func() { diff --git a/pkg/zhmcclient/lpar_test.go b/pkg/zhmcclient/lpar_test.go index d2188a6..3b1a9af 100644 --- a/pkg/zhmcclient/lpar_test.go +++ b/pkg/zhmcclient/lpar_test.go @@ -22,8 +22,8 @@ import ( . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" - . "github.ibm.com/zhmcclient/golang-zhmcclient/pkg/zhmcclient" - "github.ibm.com/zhmcclient/golang-zhmcclient/pkg/zhmcclient/fakes" + . "github.com/zhmcclient/golang-zhmcclient/pkg/zhmcclient" + "github.com/zhmcclient/golang-zhmcclient/pkg/zhmcclient/fakes" ) var _ = Describe("LPAR", func() { diff --git a/pkg/zhmcclient/nic_test.go b/pkg/zhmcclient/nic_test.go index 54b2a17..07480fe 100644 --- a/pkg/zhmcclient/nic_test.go +++ b/pkg/zhmcclient/nic_test.go @@ -21,8 +21,8 @@ import ( . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" - . "github.ibm.com/zhmcclient/golang-zhmcclient/pkg/zhmcclient" - "github.ibm.com/zhmcclient/golang-zhmcclient/pkg/zhmcclient/fakes" + . "github.com/zhmcclient/golang-zhmcclient/pkg/zhmcclient" + "github.com/zhmcclient/golang-zhmcclient/pkg/zhmcclient/fakes" ) var _ = Describe("Nic", func() { diff --git a/pkg/zhmcclient/sgroup_test.go b/pkg/zhmcclient/sgroup_test.go index 67d9a40..928dca9 100644 --- a/pkg/zhmcclient/sgroup_test.go +++ b/pkg/zhmcclient/sgroup_test.go @@ -22,8 +22,8 @@ import ( . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" - . "github.ibm.com/zhmcclient/golang-zhmcclient/pkg/zhmcclient" - "github.ibm.com/zhmcclient/golang-zhmcclient/pkg/zhmcclient/fakes" + . "github.com/zhmcclient/golang-zhmcclient/pkg/zhmcclient" + "github.com/zhmcclient/golang-zhmcclient/pkg/zhmcclient/fakes" ) var _ = Describe("Storage Group", func() { diff --git a/pkg/zhmcclient/utils_test.go b/pkg/zhmcclient/utils_test.go index 331b55e..c238675 100644 --- a/pkg/zhmcclient/utils_test.go +++ b/pkg/zhmcclient/utils_test.go @@ -21,7 +21,7 @@ import ( . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" - . "github.ibm.com/zhmcclient/golang-zhmcclient/pkg/zhmcclient" + . "github.com/zhmcclient/golang-zhmcclient/pkg/zhmcclient" ) var _ = Describe("utils", func() { diff --git a/pkg/zhmcclient/vswitch_test.go b/pkg/zhmcclient/vswitch_test.go index aa96838..c369613 100644 --- a/pkg/zhmcclient/vswitch_test.go +++ b/pkg/zhmcclient/vswitch_test.go @@ -21,8 +21,8 @@ import ( . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" - . "github.ibm.com/zhmcclient/golang-zhmcclient/pkg/zhmcclient" - "github.ibm.com/zhmcclient/golang-zhmcclient/pkg/zhmcclient/fakes" + . "github.com/zhmcclient/golang-zhmcclient/pkg/zhmcclient" + "github.com/zhmcclient/golang-zhmcclient/pkg/zhmcclient/fakes" ) var _ = Describe("Virtual Switch", func() { diff --git a/sample.go b/sample.go index f2c6655..7323a1f 100644 --- a/sample.go +++ b/sample.go @@ -22,7 +22,7 @@ import ( "go.uber.org/zap" - "github.ibm.com/zhmcclient/golang-zhmcclient/pkg/zhmcclient" + "github.com/zhmcclient/golang-zhmcclient/pkg/zhmcclient" ) func NewZapLogger() zhmcclient.Logger {