From 4c57480bd56a86feeb7e71b9e600629fbf06678d Mon Sep 17 00:00:00 2001 From: Harish P Date: Fri, 27 Sep 2024 12:05:09 +0530 Subject: [PATCH 1/7] added workflow to release lib Signed-off-by: Harish P --- .github/workflows/release.yaml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .github/workflows/release.yaml diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..00e2e27 --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,15 @@ +name: Release GoFSUtil +# Invocable as a reusable workflow +# Can be manually triggered +on: + workflow_call: + workflow_dispatch: + inputs: + version: + description: 'Version to release (major, minor, patch)' + required: true + default: 'none' +jobs: + csm-release: + uses: dell/common-github-actions/.github/workflows/csm-release-libs.yaml@feature/lib-release-automation + name: Release Go Client Libraries From 6b724a789ba44373064dd5837458c113df09c4c4 Mon Sep 17 00:00:00 2001 From: Harish P Date: Mon, 30 Sep 2024 16:49:17 +0530 Subject: [PATCH 2/7] branch update Signed-off-by: Harish P --- .github/workflows/release.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 00e2e27..63f82ff 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -11,5 +11,5 @@ on: default: 'none' jobs: csm-release: - uses: dell/common-github-actions/.github/workflows/csm-release-libs.yaml@feature/lib-release-automation + uses: dell/common-github-actions/.github/workflows/csm-release-libs.yaml@main name: Release Go Client Libraries From f7b6b4aea35be0606e2ee2d6c66e7229bfd3726d Mon Sep 17 00:00:00 2001 From: Harish P Date: Mon, 7 Oct 2024 19:58:31 +0530 Subject: [PATCH 3/7] lint fix --- gofsutil_mount_unix.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gofsutil_mount_unix.go b/gofsutil_mount_unix.go index 0ea5ad4..04d43ca 100644 --- a/gofsutil_mount_unix.go +++ b/gofsutil_mount_unix.go @@ -571,7 +571,7 @@ func (fs *FS) multipathCommand(ctx context.Context, timeoutSeconds time.Duration log.Error("multipath command failed: " + err.Error()) } if len(textBytes) > 0 { - log.Debug(fmt.Printf("multipath output: " + string(textBytes))) + log.Debug(fmt.Sprintf("multipath output: " + string(textBytes))) } return textBytes, err } From f59cbb871fc26ba7b70cf047b00c694c4eabe9ea Mon Sep 17 00:00:00 2001 From: Harish P Date: Mon, 7 Oct 2024 20:04:19 +0530 Subject: [PATCH 4/7] lint fix --- gofsutil_mount_unix.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gofsutil_mount_unix.go b/gofsutil_mount_unix.go index 04d43ca..b7d197f 100644 --- a/gofsutil_mount_unix.go +++ b/gofsutil_mount_unix.go @@ -571,7 +571,7 @@ func (fs *FS) multipathCommand(ctx context.Context, timeoutSeconds time.Duration log.Error("multipath command failed: " + err.Error()) } if len(textBytes) > 0 { - log.Debug(fmt.Sprintf("multipath output: " + string(textBytes))) + log.Debug(fmt.Sprintf("multipath output: %s" + string(textBytes))) } return textBytes, err } From 9b280b292267e8b0c34102d5759a68f6ff3e74f1 Mon Sep 17 00:00:00 2001 From: Harish P Date: Mon, 7 Oct 2024 20:12:31 +0530 Subject: [PATCH 5/7] lint error fix --- gofsutil_mount_unix.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gofsutil_mount_unix.go b/gofsutil_mount_unix.go index b7d197f..b5e9580 100644 --- a/gofsutil_mount_unix.go +++ b/gofsutil_mount_unix.go @@ -571,7 +571,7 @@ func (fs *FS) multipathCommand(ctx context.Context, timeoutSeconds time.Duration log.Error("multipath command failed: " + err.Error()) } if len(textBytes) > 0 { - log.Debug(fmt.Sprintf("multipath output: %s" + string(textBytes))) + log.Debugf("multipath output: %s" + string(textBytes)) } return textBytes, err } From 63c2cabd8938bf6314fe954480c5a215195a3a72 Mon Sep 17 00:00:00 2001 From: Harish P Date: Mon, 7 Oct 2024 20:15:50 +0530 Subject: [PATCH 6/7] lint error fix --- gofsutil_mount_unix.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gofsutil_mount_unix.go b/gofsutil_mount_unix.go index b5e9580..8a4a723 100644 --- a/gofsutil_mount_unix.go +++ b/gofsutil_mount_unix.go @@ -571,7 +571,8 @@ func (fs *FS) multipathCommand(ctx context.Context, timeoutSeconds time.Duration log.Error("multipath command failed: " + err.Error()) } if len(textBytes) > 0 { - log.Debugf("multipath output: %s" + string(textBytes)) + data := string(textBytes) + log.Debug("multipath output:" + data) } return textBytes, err } From ccfa7eac04590ee5dc482268b609b8e4288b597f Mon Sep 17 00:00:00 2001 From: Harish P Date: Mon, 7 Oct 2024 20:21:40 +0530 Subject: [PATCH 7/7] go lint fix --- gofsutil_mount_unix.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gofsutil_mount_unix.go b/gofsutil_mount_unix.go index 8a4a723..1068b3e 100644 --- a/gofsutil_mount_unix.go +++ b/gofsutil_mount_unix.go @@ -572,7 +572,7 @@ func (fs *FS) multipathCommand(ctx context.Context, timeoutSeconds time.Duration } if len(textBytes) > 0 { data := string(textBytes) - log.Debug("multipath output:" + data) + log.Debug("multipath output:", data) } return textBytes, err }