From 337b49bb18d5d91153e47d30c8846a71de7a4a88 Mon Sep 17 00:00:00 2001 From: Anton Novojilov Date: Sun, 23 Jun 2024 15:18:12 +0300 Subject: [PATCH 01/14] Improve README --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index bed94d5..24ff5ee 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,6 @@

- GoReportCard Code Climate Maintainability Codebeat badge
From b3dbc9b593a112c42c7c574ce5eea98f54f02b7f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 24 Jun 2024 02:52:33 +0000 Subject: [PATCH 02/14] Bump github.com/essentialkaos/ek/v12 in the all group Bumps the all group with 1 update: [github.com/essentialkaos/ek/v12](https://github.com/essentialkaos/ek). Updates `github.com/essentialkaos/ek/v12` from 12.126.1 to 12.127.0 - [Release notes](https://github.com/essentialkaos/ek/releases) - [Changelog](https://github.com/essentialkaos/ek/blob/master/CHANGELOG.md) - [Commits](https://github.com/essentialkaos/ek/compare/v12.126.1...v12.127.0) --- updated-dependencies: - dependency-name: github.com/essentialkaos/ek/v12 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: all ... Signed-off-by: dependabot[bot] --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index 7d98aee..53f96f3 100644 --- a/go.mod +++ b/go.mod @@ -4,7 +4,7 @@ go 1.19 require ( github.com/essentialkaos/check v1.4.0 - github.com/essentialkaos/ek/v12 v12.126.1 + github.com/essentialkaos/ek/v12 v12.127.0 github.com/klauspost/compress v1.17.9 github.com/pierrec/lz4/v4 v4.1.21 github.com/ulikunitz/xz v0.5.12 diff --git a/go.sum b/go.sum index 22dcd09..c6d2af2 100644 --- a/go.sum +++ b/go.sum @@ -1,8 +1,8 @@ github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/essentialkaos/check v1.4.0 h1:kWdFxu9odCxUqo1NNFNJmguGrDHgwi3A8daXX1nkuKk= github.com/essentialkaos/check v1.4.0/go.mod h1:LMKPZ2H+9PXe7Y2gEoKyVAwUqXVgx7KtgibfsHJPus0= -github.com/essentialkaos/ek/v12 v12.126.1 h1:K4tCpu9T3k5Bv6hJ1lmW7Ou0GxjgjBIKRsoZgAGdEhE= -github.com/essentialkaos/ek/v12 v12.126.1/go.mod h1:71IJ7m82hgjrvWnhL+z0vIhguxz47/rfVma5/CeI5Fw= +github.com/essentialkaos/ek/v12 v12.127.0 h1:fU5A+QbIZ7NTq1K5jGVwAWwuLtBUhsIKuRWYT78hE+Q= +github.com/essentialkaos/ek/v12 v12.127.0/go.mod h1:71IJ7m82hgjrvWnhL+z0vIhguxz47/rfVma5/CeI5Fw= github.com/klauspost/compress v1.17.9 h1:6KIumPrER1LHsvBVuDa0r5xaG0Es51mhhB9BQB2qeMA= github.com/klauspost/compress v1.17.9/go.mod h1:Di0epgTjJY877eYKx5yC51cX2A2Vl2ibi7bDH9ttBbw= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= From 7ca2163ea580f596956244d917c8ca5c580b2984 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 26 Jun 2024 02:08:45 +0000 Subject: [PATCH 03/14] Bump github.com/essentialkaos/ek/v12 in the all group Bumps the all group with 1 update: [github.com/essentialkaos/ek/v12](https://github.com/essentialkaos/ek). Updates `github.com/essentialkaos/ek/v12` from 12.127.0 to 12.128.0 - [Release notes](https://github.com/essentialkaos/ek/releases) - [Changelog](https://github.com/essentialkaos/ek/blob/master/CHANGELOG.md) - [Commits](https://github.com/essentialkaos/ek/compare/v12.127.0...v12.128.0) --- updated-dependencies: - dependency-name: github.com/essentialkaos/ek/v12 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: all ... Signed-off-by: dependabot[bot] --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index 53f96f3..a83fea5 100644 --- a/go.mod +++ b/go.mod @@ -4,7 +4,7 @@ go 1.19 require ( github.com/essentialkaos/check v1.4.0 - github.com/essentialkaos/ek/v12 v12.127.0 + github.com/essentialkaos/ek/v12 v12.128.0 github.com/klauspost/compress v1.17.9 github.com/pierrec/lz4/v4 v4.1.21 github.com/ulikunitz/xz v0.5.12 diff --git a/go.sum b/go.sum index c6d2af2..46d57a7 100644 --- a/go.sum +++ b/go.sum @@ -1,8 +1,8 @@ github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/essentialkaos/check v1.4.0 h1:kWdFxu9odCxUqo1NNFNJmguGrDHgwi3A8daXX1nkuKk= github.com/essentialkaos/check v1.4.0/go.mod h1:LMKPZ2H+9PXe7Y2gEoKyVAwUqXVgx7KtgibfsHJPus0= -github.com/essentialkaos/ek/v12 v12.127.0 h1:fU5A+QbIZ7NTq1K5jGVwAWwuLtBUhsIKuRWYT78hE+Q= -github.com/essentialkaos/ek/v12 v12.127.0/go.mod h1:71IJ7m82hgjrvWnhL+z0vIhguxz47/rfVma5/CeI5Fw= +github.com/essentialkaos/ek/v12 v12.128.0 h1:vaBvqvYZtkBxmiYSMllYA6MRbNbiOXcxwKEVbZqxxLE= +github.com/essentialkaos/ek/v12 v12.128.0/go.mod h1:71IJ7m82hgjrvWnhL+z0vIhguxz47/rfVma5/CeI5Fw= github.com/klauspost/compress v1.17.9 h1:6KIumPrER1LHsvBVuDa0r5xaG0Es51mhhB9BQB2qeMA= github.com/klauspost/compress v1.17.9/go.mod h1:Di0epgTjJY877eYKx5yC51cX2A2Vl2ibi7bDH9ttBbw= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= From a478b32bb229bf8ba768990a8380bcade091c510 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 27 Jun 2024 02:41:20 +0000 Subject: [PATCH 04/14] Bump github.com/essentialkaos/ek/v12 in the all group Bumps the all group with 1 update: [github.com/essentialkaos/ek/v12](https://github.com/essentialkaos/ek). Updates `github.com/essentialkaos/ek/v12` from 12.128.0 to 12.129.0 - [Release notes](https://github.com/essentialkaos/ek/releases) - [Changelog](https://github.com/essentialkaos/ek/blob/master/CHANGELOG.md) - [Commits](https://github.com/essentialkaos/ek/compare/v12.128.0...v12.129.0) --- updated-dependencies: - dependency-name: github.com/essentialkaos/ek/v12 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: all ... Signed-off-by: dependabot[bot] --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index a83fea5..351afd3 100644 --- a/go.mod +++ b/go.mod @@ -4,7 +4,7 @@ go 1.19 require ( github.com/essentialkaos/check v1.4.0 - github.com/essentialkaos/ek/v12 v12.128.0 + github.com/essentialkaos/ek/v12 v12.129.0 github.com/klauspost/compress v1.17.9 github.com/pierrec/lz4/v4 v4.1.21 github.com/ulikunitz/xz v0.5.12 diff --git a/go.sum b/go.sum index 46d57a7..44b4b3e 100644 --- a/go.sum +++ b/go.sum @@ -1,8 +1,8 @@ github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/essentialkaos/check v1.4.0 h1:kWdFxu9odCxUqo1NNFNJmguGrDHgwi3A8daXX1nkuKk= github.com/essentialkaos/check v1.4.0/go.mod h1:LMKPZ2H+9PXe7Y2gEoKyVAwUqXVgx7KtgibfsHJPus0= -github.com/essentialkaos/ek/v12 v12.128.0 h1:vaBvqvYZtkBxmiYSMllYA6MRbNbiOXcxwKEVbZqxxLE= -github.com/essentialkaos/ek/v12 v12.128.0/go.mod h1:71IJ7m82hgjrvWnhL+z0vIhguxz47/rfVma5/CeI5Fw= +github.com/essentialkaos/ek/v12 v12.129.0 h1:ILbIifoOe3nZIP2ilRBZ/N/UyZUNCSGFGRnwb0Vb5WQ= +github.com/essentialkaos/ek/v12 v12.129.0/go.mod h1:71IJ7m82hgjrvWnhL+z0vIhguxz47/rfVma5/CeI5Fw= github.com/klauspost/compress v1.17.9 h1:6KIumPrER1LHsvBVuDa0r5xaG0Es51mhhB9BQB2qeMA= github.com/klauspost/compress v1.17.9/go.mod h1:Di0epgTjJY877eYKx5yC51cX2A2Vl2ibi7bDH9ttBbw= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= From e86f79a58e8590014c8f398f10181101038671fa Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 8 Jul 2024 02:39:49 +0000 Subject: [PATCH 05/14] Bump github.com/essentialkaos/ek/v12 in the all group Bumps the all group with 1 update: [github.com/essentialkaos/ek/v12](https://github.com/essentialkaos/ek). Updates `github.com/essentialkaos/ek/v12` from 12.129.0 to 12.130.0 - [Release notes](https://github.com/essentialkaos/ek/releases) - [Changelog](https://github.com/essentialkaos/ek/blob/master/CHANGELOG.md) - [Commits](https://github.com/essentialkaos/ek/compare/v12.129.0...v12.130.0) --- updated-dependencies: - dependency-name: github.com/essentialkaos/ek/v12 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: all ... Signed-off-by: dependabot[bot] --- go.mod | 4 ++-- go.sum | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/go.mod b/go.mod index 351afd3..5efbf58 100644 --- a/go.mod +++ b/go.mod @@ -4,7 +4,7 @@ go 1.19 require ( github.com/essentialkaos/check v1.4.0 - github.com/essentialkaos/ek/v12 v12.129.0 + github.com/essentialkaos/ek/v12 v12.130.0 github.com/klauspost/compress v1.17.9 github.com/pierrec/lz4/v4 v4.1.21 github.com/ulikunitz/xz v0.5.12 @@ -14,5 +14,5 @@ require ( github.com/kr/pretty v0.3.1 // indirect github.com/kr/text v0.2.0 // indirect github.com/rogpeppe/go-internal v1.11.0 // indirect - golang.org/x/sys v0.21.0 // indirect + golang.org/x/sys v0.22.0 // indirect ) diff --git a/go.sum b/go.sum index 44b4b3e..f302910 100644 --- a/go.sum +++ b/go.sum @@ -1,8 +1,8 @@ github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/essentialkaos/check v1.4.0 h1:kWdFxu9odCxUqo1NNFNJmguGrDHgwi3A8daXX1nkuKk= github.com/essentialkaos/check v1.4.0/go.mod h1:LMKPZ2H+9PXe7Y2gEoKyVAwUqXVgx7KtgibfsHJPus0= -github.com/essentialkaos/ek/v12 v12.129.0 h1:ILbIifoOe3nZIP2ilRBZ/N/UyZUNCSGFGRnwb0Vb5WQ= -github.com/essentialkaos/ek/v12 v12.129.0/go.mod h1:71IJ7m82hgjrvWnhL+z0vIhguxz47/rfVma5/CeI5Fw= +github.com/essentialkaos/ek/v12 v12.130.0 h1:JhcjGZaBIEFfyNReHAHeTgldNv65ruHa9LR7YIVgmn0= +github.com/essentialkaos/ek/v12 v12.130.0/go.mod h1:yGof+LJIkWvQtGINs+2AGv/yeqcfj/brpQ9eYnzMzKs= github.com/klauspost/compress v1.17.9 h1:6KIumPrER1LHsvBVuDa0r5xaG0Es51mhhB9BQB2qeMA= github.com/klauspost/compress v1.17.9/go.mod h1:Di0epgTjJY877eYKx5yC51cX2A2Vl2ibi7bDH9ttBbw= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= @@ -17,5 +17,5 @@ github.com/rogpeppe/go-internal v1.11.0 h1:cWPaGQEPrBb5/AsnsZesgZZ9yb1OQ+GOISoDN github.com/rogpeppe/go-internal v1.11.0/go.mod h1:ddIwULY96R17DhadqLgMfk9H9tvdUzkipdSkR5nkCZA= github.com/ulikunitz/xz v0.5.12 h1:37Nm15o69RwBkXM0J6A5OlE67RZTfzUxTj8fB3dfcsc= github.com/ulikunitz/xz v0.5.12/go.mod h1:nbz6k7qbPmH4IRqmfOplQw/tblSgqTqBwxkY0oWt/14= -golang.org/x/sys v0.21.0 h1:rF+pYz3DAGSQAxAu1CbC7catZg4ebC4UIeIhKxBZvws= -golang.org/x/sys v0.21.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.22.0 h1:RI27ohtqKCnwULzJLqkv897zojh5/DwS/ENaMzUOaWI= +golang.org/x/sys v0.22.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= From 5f4424de39ceb50eead166f3e9805481d11109f8 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 24 Sep 2024 02:53:07 +0000 Subject: [PATCH 06/14] Bump github.com/klauspost/compress in the all group Bumps the all group with 1 update: [github.com/klauspost/compress](https://github.com/klauspost/compress). Updates `github.com/klauspost/compress` from 1.17.9 to 1.17.10 - [Release notes](https://github.com/klauspost/compress/releases) - [Changelog](https://github.com/klauspost/compress/blob/master/.goreleaser.yml) - [Commits](https://github.com/klauspost/compress/compare/v1.17.9...v1.17.10) --- updated-dependencies: - dependency-name: github.com/klauspost/compress dependency-type: direct:production update-type: version-update:semver-patch dependency-group: all ... Signed-off-by: dependabot[bot] --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index 5efbf58..3fc8b16 100644 --- a/go.mod +++ b/go.mod @@ -5,7 +5,7 @@ go 1.19 require ( github.com/essentialkaos/check v1.4.0 github.com/essentialkaos/ek/v12 v12.130.0 - github.com/klauspost/compress v1.17.9 + github.com/klauspost/compress v1.17.10 github.com/pierrec/lz4/v4 v4.1.21 github.com/ulikunitz/xz v0.5.12 ) diff --git a/go.sum b/go.sum index f302910..034edad 100644 --- a/go.sum +++ b/go.sum @@ -3,8 +3,8 @@ github.com/essentialkaos/check v1.4.0 h1:kWdFxu9odCxUqo1NNFNJmguGrDHgwi3A8daXX1n github.com/essentialkaos/check v1.4.0/go.mod h1:LMKPZ2H+9PXe7Y2gEoKyVAwUqXVgx7KtgibfsHJPus0= github.com/essentialkaos/ek/v12 v12.130.0 h1:JhcjGZaBIEFfyNReHAHeTgldNv65ruHa9LR7YIVgmn0= github.com/essentialkaos/ek/v12 v12.130.0/go.mod h1:yGof+LJIkWvQtGINs+2AGv/yeqcfj/brpQ9eYnzMzKs= -github.com/klauspost/compress v1.17.9 h1:6KIumPrER1LHsvBVuDa0r5xaG0Es51mhhB9BQB2qeMA= -github.com/klauspost/compress v1.17.9/go.mod h1:Di0epgTjJY877eYKx5yC51cX2A2Vl2ibi7bDH9ttBbw= +github.com/klauspost/compress v1.17.10 h1:oXAz+Vh0PMUvJczoi+flxpnBEPxoER1IaAnU/NMPtT0= +github.com/klauspost/compress v1.17.10/go.mod h1:pMDklpSncoRMuLFrf1W9Ss9KT+0rH90U12bZKk7uwG0= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= From cb52d2adfbe692591987eb7e32a178aad08812d5 Mon Sep 17 00:00:00 2001 From: Anton Novojilov Date: Tue, 24 Sep 2024 11:06:32 +0300 Subject: [PATCH 07/14] Improve Dependabot configuration --- .github/dependabot.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index d0ad1de..605744a 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -6,7 +6,7 @@ updates: target-branch: "develop" schedule: interval: "daily" - timezone: "Europe/London" + timezone: "Etc/UTC" time: "03:00" labels: - "PR β€’ MAINTENANCE" @@ -26,8 +26,8 @@ updates: target-branch: "develop" schedule: interval: "daily" - timezone: "Europe/London" - time: "04:00" + timezone: "Etc/UTC" + time: "03:00" labels: - "PR β€’ MAINTENANCE" assignees: From af67d94f42dca2b81e54a3473bd6b6c18ab806a9 Mon Sep 17 00:00:00 2001 From: Anton Novojilov Date: Tue, 24 Sep 2024 12:13:43 +0300 Subject: [PATCH 08/14] Dependencies update --- .github/workflows/ci.yml | 2 +- bz2/bz2_test.go | 4 ++-- go.mod | 8 ++++---- go.sum | 12 ++++++------ gz/gz_test.go | 4 ++-- lz4/lz4_test.go | 4 ++-- tar/tar_test.go | 4 ++-- tbz2/tbz2_test.go | 4 ++-- tgz/tgz_test.go | 4 ++-- tlz4/tlz4_test.go | 4 ++-- txz/txz_test.go | 4 ++-- tzst/tzst_test.go | 4 ++-- xz/xz_test.go | 4 ++-- zip/zip_test.go | 4 ++-- zst/zst_test.go | 4 ++-- 15 files changed, 35 insertions(+), 35 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8671bc3..786ab14 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,7 +31,7 @@ jobs: strategy: matrix: - go: [ '1.20.x', '1.21.x', '1.22.x' ] + go: [ '1.22.x', '1.23.x' ] steps: - name: Checkout diff --git a/bz2/bz2_test.go b/bz2/bz2_test.go index 95d95c2..195a571 100644 --- a/bz2/bz2_test.go +++ b/bz2/bz2_test.go @@ -12,8 +12,8 @@ import ( "strings" "testing" - "github.com/essentialkaos/ek/v12/fsutil" - "github.com/essentialkaos/ek/v12/hash" + "github.com/essentialkaos/ek/v13/fsutil" + "github.com/essentialkaos/ek/v13/hash" . "github.com/essentialkaos/check" ) diff --git a/go.mod b/go.mod index 3fc8b16..ac4a8e0 100644 --- a/go.mod +++ b/go.mod @@ -1,10 +1,10 @@ module github.com/essentialkaos/npck -go 1.19 +go 1.22 require ( github.com/essentialkaos/check v1.4.0 - github.com/essentialkaos/ek/v12 v12.130.0 + github.com/essentialkaos/ek/v13 v13.5.1 github.com/klauspost/compress v1.17.10 github.com/pierrec/lz4/v4 v4.1.21 github.com/ulikunitz/xz v0.5.12 @@ -13,6 +13,6 @@ require ( require ( github.com/kr/pretty v0.3.1 // indirect github.com/kr/text v0.2.0 // indirect - github.com/rogpeppe/go-internal v1.11.0 // indirect - golang.org/x/sys v0.22.0 // indirect + github.com/rogpeppe/go-internal v1.13.1 // indirect + golang.org/x/sys v0.25.0 // indirect ) diff --git a/go.sum b/go.sum index 034edad..c49af1e 100644 --- a/go.sum +++ b/go.sum @@ -1,8 +1,8 @@ github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/essentialkaos/check v1.4.0 h1:kWdFxu9odCxUqo1NNFNJmguGrDHgwi3A8daXX1nkuKk= github.com/essentialkaos/check v1.4.0/go.mod h1:LMKPZ2H+9PXe7Y2gEoKyVAwUqXVgx7KtgibfsHJPus0= -github.com/essentialkaos/ek/v12 v12.130.0 h1:JhcjGZaBIEFfyNReHAHeTgldNv65ruHa9LR7YIVgmn0= -github.com/essentialkaos/ek/v12 v12.130.0/go.mod h1:yGof+LJIkWvQtGINs+2AGv/yeqcfj/brpQ9eYnzMzKs= +github.com/essentialkaos/ek/v13 v13.5.1 h1:xkr3d5uAzs69AqI0oKHjjZIsowKdR117AMBv+Dop4Fk= +github.com/essentialkaos/ek/v13 v13.5.1/go.mod h1:KBOtJlrIC2etc/EXvMdbz1JeKmtkuVdK6uRW/ap0OPM= github.com/klauspost/compress v1.17.10 h1:oXAz+Vh0PMUvJczoi+flxpnBEPxoER1IaAnU/NMPtT0= github.com/klauspost/compress v1.17.10/go.mod h1:pMDklpSncoRMuLFrf1W9Ss9KT+0rH90U12bZKk7uwG0= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= @@ -13,9 +13,9 @@ github.com/pierrec/lz4/v4 v4.1.21 h1:yOVMLb6qSIDP67pl/5F7RepeKYu/VmTyEXvuMI5d9mQ github.com/pierrec/lz4/v4 v4.1.21/go.mod h1:gZWDp/Ze/IJXGXf23ltt2EXimqmTUXEy0GFuRQyBid4= github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e/go.mod h1:pJLUxLENpZxwdsKMEsNbx1VGcRFpLqf3715MtcvvzbA= github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/fJaraNFVN+nFs= -github.com/rogpeppe/go-internal v1.11.0 h1:cWPaGQEPrBb5/AsnsZesgZZ9yb1OQ+GOISoDNXVBh4M= -github.com/rogpeppe/go-internal v1.11.0/go.mod h1:ddIwULY96R17DhadqLgMfk9H9tvdUzkipdSkR5nkCZA= +github.com/rogpeppe/go-internal v1.13.1 h1:KvO1DLK/DRN07sQ1LQKScxyZJuNnedQ5/wKSR38lUII= +github.com/rogpeppe/go-internal v1.13.1/go.mod h1:uMEvuHeurkdAXX61udpOXGD/AzZDWNMNyH2VO9fmH0o= github.com/ulikunitz/xz v0.5.12 h1:37Nm15o69RwBkXM0J6A5OlE67RZTfzUxTj8fB3dfcsc= github.com/ulikunitz/xz v0.5.12/go.mod h1:nbz6k7qbPmH4IRqmfOplQw/tblSgqTqBwxkY0oWt/14= -golang.org/x/sys v0.22.0 h1:RI27ohtqKCnwULzJLqkv897zojh5/DwS/ENaMzUOaWI= -golang.org/x/sys v0.22.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.25.0 h1:r+8e+loiHxRqhXVl6ML1nO3l1+oFoWbnlu2Ehimmi34= +golang.org/x/sys v0.25.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= diff --git a/gz/gz_test.go b/gz/gz_test.go index 5834f4d..435be34 100644 --- a/gz/gz_test.go +++ b/gz/gz_test.go @@ -12,8 +12,8 @@ import ( "strings" "testing" - "github.com/essentialkaos/ek/v12/fsutil" - "github.com/essentialkaos/ek/v12/hash" + "github.com/essentialkaos/ek/v13/fsutil" + "github.com/essentialkaos/ek/v13/hash" . "github.com/essentialkaos/check" ) diff --git a/lz4/lz4_test.go b/lz4/lz4_test.go index 623c8f6..e51072e 100644 --- a/lz4/lz4_test.go +++ b/lz4/lz4_test.go @@ -12,8 +12,8 @@ import ( "strings" "testing" - "github.com/essentialkaos/ek/v12/fsutil" - "github.com/essentialkaos/ek/v12/hash" + "github.com/essentialkaos/ek/v13/fsutil" + "github.com/essentialkaos/ek/v13/hash" . "github.com/essentialkaos/check" ) diff --git a/tar/tar_test.go b/tar/tar_test.go index 93be7ab..1675c90 100644 --- a/tar/tar_test.go +++ b/tar/tar_test.go @@ -14,8 +14,8 @@ import ( "testing" "time" - "github.com/essentialkaos/ek/v12/fsutil" - "github.com/essentialkaos/ek/v12/hash" + "github.com/essentialkaos/ek/v13/fsutil" + "github.com/essentialkaos/ek/v13/hash" . "github.com/essentialkaos/check" ) diff --git a/tbz2/tbz2_test.go b/tbz2/tbz2_test.go index c63247d..99bba04 100644 --- a/tbz2/tbz2_test.go +++ b/tbz2/tbz2_test.go @@ -11,8 +11,8 @@ import ( "os" "testing" - "github.com/essentialkaos/ek/v12/fsutil" - "github.com/essentialkaos/ek/v12/hash" + "github.com/essentialkaos/ek/v13/fsutil" + "github.com/essentialkaos/ek/v13/hash" . "github.com/essentialkaos/check" ) diff --git a/tgz/tgz_test.go b/tgz/tgz_test.go index 72aad1c..7db8ad8 100644 --- a/tgz/tgz_test.go +++ b/tgz/tgz_test.go @@ -11,8 +11,8 @@ import ( "os" "testing" - "github.com/essentialkaos/ek/v12/fsutil" - "github.com/essentialkaos/ek/v12/hash" + "github.com/essentialkaos/ek/v13/fsutil" + "github.com/essentialkaos/ek/v13/hash" . "github.com/essentialkaos/check" ) diff --git a/tlz4/tlz4_test.go b/tlz4/tlz4_test.go index 4c9c463..3edf83b 100644 --- a/tlz4/tlz4_test.go +++ b/tlz4/tlz4_test.go @@ -11,8 +11,8 @@ import ( "os" "testing" - "github.com/essentialkaos/ek/v12/fsutil" - "github.com/essentialkaos/ek/v12/hash" + "github.com/essentialkaos/ek/v13/fsutil" + "github.com/essentialkaos/ek/v13/hash" . "github.com/essentialkaos/check" ) diff --git a/txz/txz_test.go b/txz/txz_test.go index ab8a209..98faee3 100644 --- a/txz/txz_test.go +++ b/txz/txz_test.go @@ -11,8 +11,8 @@ import ( "os" "testing" - "github.com/essentialkaos/ek/v12/fsutil" - "github.com/essentialkaos/ek/v12/hash" + "github.com/essentialkaos/ek/v13/fsutil" + "github.com/essentialkaos/ek/v13/hash" . "github.com/essentialkaos/check" ) diff --git a/tzst/tzst_test.go b/tzst/tzst_test.go index 180275d..f0377f7 100644 --- a/tzst/tzst_test.go +++ b/tzst/tzst_test.go @@ -11,8 +11,8 @@ import ( "os" "testing" - "github.com/essentialkaos/ek/v12/fsutil" - "github.com/essentialkaos/ek/v12/hash" + "github.com/essentialkaos/ek/v13/fsutil" + "github.com/essentialkaos/ek/v13/hash" . "github.com/essentialkaos/check" ) diff --git a/xz/xz_test.go b/xz/xz_test.go index 50ac1a5..a738ab4 100644 --- a/xz/xz_test.go +++ b/xz/xz_test.go @@ -12,8 +12,8 @@ import ( "strings" "testing" - "github.com/essentialkaos/ek/v12/fsutil" - "github.com/essentialkaos/ek/v12/hash" + "github.com/essentialkaos/ek/v13/fsutil" + "github.com/essentialkaos/ek/v13/hash" . "github.com/essentialkaos/check" ) diff --git a/zip/zip_test.go b/zip/zip_test.go index 8ec64ec..2dbd578 100644 --- a/zip/zip_test.go +++ b/zip/zip_test.go @@ -12,8 +12,8 @@ import ( "strings" "testing" - "github.com/essentialkaos/ek/v12/fsutil" - "github.com/essentialkaos/ek/v12/hash" + "github.com/essentialkaos/ek/v13/fsutil" + "github.com/essentialkaos/ek/v13/hash" . "github.com/essentialkaos/check" ) diff --git a/zst/zst_test.go b/zst/zst_test.go index 8bfd415..75b990e 100644 --- a/zst/zst_test.go +++ b/zst/zst_test.go @@ -12,8 +12,8 @@ import ( "strings" "testing" - "github.com/essentialkaos/ek/v12/fsutil" - "github.com/essentialkaos/ek/v12/hash" + "github.com/essentialkaos/ek/v13/fsutil" + "github.com/essentialkaos/ek/v13/hash" . "github.com/essentialkaos/check" ) From d7e04abf351a85092d1c3806f8bb95356fdfb80f Mon Sep 17 00:00:00 2001 From: Anton Novojilov Date: Tue, 24 Sep 2024 12:15:09 +0300 Subject: [PATCH 09/14] Remove codebeat --- .codebeatsettings | 11 ----------- README.md | 1 - 2 files changed, 12 deletions(-) delete mode 100644 .codebeatsettings diff --git a/.codebeatsettings b/.codebeatsettings deleted file mode 100644 index 8e5dd08..0000000 --- a/.codebeatsettings +++ /dev/null @@ -1,11 +0,0 @@ -{ - "GOLANG": { - "ABC": [15, 25, 50, 70], - "LOC": [30, 45, 70, 100], - "BLOCK_NESTING": [4, 6, 8, 10], - "TOO_MANY_IVARS": [50, 75, 100, 150], - "TOO_MANY_FUNCTIONS": [64, 128, 256, 512], - "TOTAL_LOC": [1500, 3000, 5000, 10000], - "TOTAL_COMPLEXITY": [350, 600, 900, 1200] - } -} diff --git a/README.md b/README.md index 24ff5ee..e1e6388 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,6 @@

Code Climate Maintainability - Codebeat badge
Coverage Status GitHub Actions CI Status From b017e177406e40ea7ffd913188b006f93b34d1bb Mon Sep 17 00:00:00 2001 From: Anton Novojilov Date: Tue, 24 Sep 2024 12:21:38 +0300 Subject: [PATCH 10/14] Add Codacy support --- .github/workflows/ci.yml | 19 +++++++++++++++++-- README.md | 1 + 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 786ab14..509a42b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -48,7 +48,7 @@ jobs: - name: Run tests run: go test -v -covermode count -coverprofile cover.out ./... - - name: Send coverage data + - name: Send coverage data to Coveralls uses: essentialkaos/goveralls-action@v2 env: COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -57,20 +57,35 @@ jobs: parallel: true flag-name: linux-${{ matrix.go }} + - name: Send coverage data to Codacy + env: + CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }} + run: | + bash <(curl -Ls https://coverage.codacy.com/get.sh) report \ + --force-coverage-parser go \ + -r cover.out \ + --partial + SendCoverage: name: Send Coverage runs-on: ubuntu-latest + if: success() || failure() needs: Go steps: - - name: Finish parallel tests + - name: Finish parallel tests (Coveralls) uses: essentialkaos/goveralls-action@v2 env: COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: parallel-finished: true + - name: Finish parallel tests (Codacy) + env: + CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }} + run: bash <(curl -Ls https://coverage.codacy.com/get.sh) final + Typos: name: Typos runs-on: ubuntu-latest diff --git a/README.md b/README.md index e1e6388..0cec91d 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,7 @@

Code Climate Maintainability + Codacy
Coverage Status GitHub Actions CI Status From c540ae6e26c9aa27c1f87b171075e70d48180730 Mon Sep 17 00:00:00 2001 From: Anton Novojilov Date: Tue, 24 Sep 2024 12:26:33 +0300 Subject: [PATCH 11/14] New issue templates --- .github/ISSUE_TEMPLATE.md | 53 --------------------------- .github/ISSUE_TEMPLATE/bug.yml | 51 ++++++++++++++++++++++++++ .github/ISSUE_TEMPLATE/config.yml | 1 + .github/ISSUE_TEMPLATE/question.yml | 28 ++++++++++++++ .github/ISSUE_TEMPLATE/suggestion.yml | 43 ++++++++++++++++++++++ 5 files changed, 123 insertions(+), 53 deletions(-) delete mode 100644 .github/ISSUE_TEMPLATE.md create mode 100644 .github/ISSUE_TEMPLATE/bug.yml create mode 100644 .github/ISSUE_TEMPLATE/config.yml create mode 100644 .github/ISSUE_TEMPLATE/question.yml create mode 100644 .github/ISSUE_TEMPLATE/suggestion.yml diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md deleted file mode 100644 index 35509f0..0000000 --- a/.github/ISSUE_TEMPLATE.md +++ /dev/null @@ -1,53 +0,0 @@ -_Before opening an issue, search for similar bug reports or feature requests on GitHub Issues. If yes, please add a_ πŸ‘ _reaction to the existing issue. If no similar issue can be found, fill out either the "Bug Report" or the "Feature Request" section below. Erase the other section and everything on and above this line._ - -### Bug report - -**System info:** - -* **Version used:** -* **OS (e.g. from `/etc/*-release`):** -* **Kernel (`uname -a`):** -* **Install tools:** - -**Steps to reproduce:** - -1. [First Step] -2. [Second Step] -3. [and so on...] - -**Expected behavior:** - -[What you expected to happen] - -**Actual behavior:** - -[What actually happened] - -**Additional info:** - -[Include gist of relevant config, logs, etc.] - -Please run those if possible and link them from a [gist](http://gist.github.com). - ---- - -### Feature Request - -Opening a feature request kicks off a discussion. Requests may be closed if we're not actively planning to work on them. - -**Proposal:** - -[Description of the feature] - -**Current behavior:** - -[What currently happens] - -**Desired behavior:** - -[What you would like to happen] - -**Use case:** - -[Why is this important (helps with prioritizing requests)] - diff --git a/.github/ISSUE_TEMPLATE/bug.yml b/.github/ISSUE_TEMPLATE/bug.yml new file mode 100644 index 0000000..44640bd --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug.yml @@ -0,0 +1,51 @@ +name: ❗ Bug Report +description: File a bug report +title: "[Bug]: " +labels: ["issue β€’ bug"] +assignees: + - andyone + +body: + - type: markdown + attributes: + value: | + > [!IMPORTANT] + > Before you open an issue, search GitHub Issues for a similar bug reports. If so, please add a πŸ‘ reaction to the existing issue. + + - type: textarea + attributes: + label: Module version info + description: Output of `grep 'github.com/essentialkaos/npck' go.sum` command + render: shell + validations: + required: true + + - type: textarea + attributes: + label: Steps to reproduce + description: Short guide on how to reproduce this problem on our site + placeholder: | + 1. [First Step] + 2. [Second Step] + 3. [and so on...] + validations: + required: true + + - type: textarea + attributes: + label: Expected behavior + description: What you expected to happen + validations: + required: true + + - type: textarea + attributes: + label: Actual behavior + description: What actually happened + validations: + required: true + + - type: textarea + attributes: + label: Additional info + description: Include gist of relevant config, logs, etc. diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml new file mode 100644 index 0000000..3ba13e0 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -0,0 +1 @@ +blank_issues_enabled: false diff --git a/.github/ISSUE_TEMPLATE/question.yml b/.github/ISSUE_TEMPLATE/question.yml new file mode 100644 index 0000000..5aff287 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/question.yml @@ -0,0 +1,28 @@ +name: ❓ Question +description: Question about application, configuration or code +title: "[Question]: " +labels: ["issue β€’ question"] +assignees: + - andyone + +body: + - type: markdown + attributes: + value: | + > [!IMPORTANT] + > Before you open an issue, search GitHub Issues for a similar question. If so, please add a πŸ‘ reaction to the existing issue. + + - type: textarea + attributes: + label: Question + description: Detailed question + validations: + required: true + + - type: textarea + attributes: + label: Module version info + description: Output of `grep 'github.com/essentialkaos/npck' go.sum` command + render: shell + validations: + required: true diff --git a/.github/ISSUE_TEMPLATE/suggestion.yml b/.github/ISSUE_TEMPLATE/suggestion.yml new file mode 100644 index 0000000..39c69e0 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/suggestion.yml @@ -0,0 +1,43 @@ +name: βž• Suggestion +description: Suggest new feature or improvement +title: "[Suggestion]: " +labels: ["issue β€’ suggestion"] +assignees: + - andyone + +body: + - type: markdown + attributes: + value: | + > [!IMPORTANT] + > Before you open an issue, search GitHub Issues for a similar feature requests. If so, please add a πŸ‘ reaction to the existing issue. + > + > Opening a feature request kicks off a discussion. Requests may be closed if we're not actively planning to work on them. + + - type: textarea + attributes: + label: Proposal + description: Description of the feature + validations: + required: true + + - type: textarea + attributes: + label: Current behavior + description: What currently happens + validations: + required: true + + - type: textarea + attributes: + label: Desired behavior + description: What you would like to happen + validations: + required: true + + - type: textarea + attributes: + label: Use case + description: Why is this important (helps with prioritizing requests) + validations: + required: true From ad27e5ac793f82a134db341cd88800cf4531d70d Mon Sep 17 00:00:00 2001 From: Anton Novojilov Date: Tue, 24 Sep 2024 12:33:09 +0300 Subject: [PATCH 12/14] Regenerate Makefile with the latest version of gomakegen --- Makefile | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 43e5f47..0db7fb8 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ ################################################################################ -# This Makefile generated by GoMakeGen 3.0.2 using next command: +# This Makefile generated by GoMakeGen 3.2.0 using next command: # gomakegen --mod . # # More info: https://kaos.sh/gomakegen @@ -11,6 +11,16 @@ ifdef VERBOSE ## Print verbose information (Flag) VERBOSE_FLAG = -v endif +ifdef PROXY ## Force proxy usage for downloading dependencies (Flag) +export GOPROXY=https://proxy.golang.org/cached-only,direct +endif + +ifdef CGO ## Enable CGO usage (Flag) +export CGO_ENABLED=1 +else +export CGO_ENABLED=0 +endif + COMPAT ?= 1.19 MAKEDIR = $(dir $(realpath $(firstword $(MAKEFILE_LIST)))) GITREV ?= $(shell test -s $(MAKEDIR)/.git && git rev-parse --short HEAD) @@ -33,7 +43,7 @@ vendor: mod-vendor ## Make vendored copy of dependencies test: ## Run tests @echo "Starting tests…" ifdef COVERAGE_FILE ## Save coverage data into file (String) - @go test $(VERBOSE_FLAG) -covermode=count -coverprofile=$(COVERAGE_FILE) ./... + @go test $(VERBOSE_FLAG) -covermode=count -coverprofile=$(COVERAGE_FILE) ./. ./bz2 ./gz ./lz4 ./tar ./tbz2 ./tgz ./tlz4 ./txz ./tzst ./utils ./xz ./zip ./zst else @go test $(VERBOSE_FLAG) -covermode=count ./... endif @@ -97,8 +107,9 @@ help: ## Show this info @echo -e '\n\033[1mVariables:\033[0m\n' @grep -E '^ifdef [A-Z_]+ .*?## .*$$' $(abspath $(lastword $(MAKEFILE_LIST))) \ | sed 's/ifdef //' \ + | sort -h \ | awk 'BEGIN {FS = " .*?## "}; {printf " \033[32m%-13s\033[0m %s\n", $$1, $$2}' @echo -e '' - @echo -e '\033[90mGenerated by GoMakeGen 3.0.2\033[0m\n' + @echo -e '\033[90mGenerated by GoMakeGen 3.2.0\033[0m\n' ################################################################################ From 16b99a01f7ec8825812d38b06847fa886abd1e67 Mon Sep 17 00:00:00 2001 From: Anton Novojilov Date: Tue, 24 Sep 2024 12:35:26 +0300 Subject: [PATCH 13/14] Minor improvements --- tar/tar.go | 4 ++++ utils/utils_test.go | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/tar/tar.go b/tar/tar.go index f39aba9..924dae4 100644 --- a/tar/tar.go +++ b/tar/tar.go @@ -150,6 +150,10 @@ func createFile(h *tar.Header, r io.Reader, path string) error { bw := bufio.NewWriter(fd) _, err = io.Copy(bw, r) + if err != nil { + return err + } + bw.Flush() fd.Close() diff --git a/utils/utils_test.go b/utils/utils_test.go index e5a2ac8..3c78c39 100644 --- a/utils/utils_test.go +++ b/utils/utils_test.go @@ -54,9 +54,9 @@ func (s *UtilsSuite) TestJoin(c *C) { c.Assert(err, IsNil) c.Assert(p, Matches, "*/test/test.log") - p, err = Join(testDir, "mytest/../test2.link") + _, err = Join(testDir, "mytest/../test2.link") c.Assert(err, NotNil) - p, err = Join(testDir, "mytest/../test3.link") + _, err = Join(testDir, "mytest/../test3.link") c.Assert(err, NotNil) } From 4a50945a3af4c613809bf407918a8fc6f6bf09d1 Mon Sep 17 00:00:00 2001 From: Anton Novojilov Date: Tue, 24 Sep 2024 12:41:22 +0300 Subject: [PATCH 14/14] Improve CI workflow --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 509a42b..7b9f780 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -46,7 +46,7 @@ jobs: run: make deps - name: Run tests - run: go test -v -covermode count -coverprofile cover.out ./... + run: make test COVERAGE_FILE=cover.out - name: Send coverage data to Coveralls uses: essentialkaos/goveralls-action@v2