Skip to content

Commit 85a4be9

Browse files
authored
Merge pull request #183 from essentialkaos/develop
Version 1.7.3
2 parents 3461827 + e9226e4 commit 85a4be9

46 files changed

Lines changed: 96 additions & 84 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535

3636
steps:
3737
- name: Checkout
38-
uses: actions/checkout@v4
38+
uses: actions/checkout@v5
3939

4040
- name: Set up Go
4141
uses: actions/setup-go@v5
@@ -94,7 +94,7 @@ jobs:
9494

9595
steps:
9696
- name: Checkout
97-
uses: actions/checkout@v4
97+
uses: actions/checkout@v5
9898

9999
- name: Check spelling
100100
uses: crate-ci/typos@master

.github/workflows/codeql.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020

2121
steps:
2222
- name: Checkout repository
23-
uses: actions/checkout@v4
23+
uses: actions/checkout@v5
2424
with:
2525
fetch-depth: 2
2626

Makefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
################################################################################
22

3-
# This Makefile generated by GoMakeGen 3.3.2 using next command:
3+
# This Makefile generated by GoMakeGen 3.3.3 using next command:
44
# gomakegen --mod .
55
#
66
# More info: https://kaos.sh/gomakegen
@@ -113,15 +113,15 @@ vet: ## Runs 'go vet' over sources
113113
@go vet -composites=false -printfuncs=LPrintf,TLPrintf,TPrintf,log.Debug,log.Info,log.Warn,log.Error,log.Critical,log.Print ./...
114114

115115
help: ## Show this info
116-
@echo -e '\n\033[1mTargets:\033[0m\n'
116+
@printf '\n\033[1mTargets:\033[0m\n\n'
117117
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) \
118118
| awk 'BEGIN {FS = ":.*?## "}; {printf " \033[33m%-6s\033[0m %s\n", $$1, $$2}'
119-
@echo -e '\n\033[1mVariables:\033[0m\n'
119+
@printf '\n\033[1mVariables:\033[0m\n\n'
120120
@grep -E '^ifdef [A-Z_]+ .*?## .*$$' $(abspath $(lastword $(MAKEFILE_LIST))) \
121121
| sed 's/ifdef //' \
122122
| sort -h \
123123
| awk 'BEGIN {FS = " .*?## "}; {printf " \033[32m%-13s\033[0m %s\n", $$1, $$2}'
124-
@echo -e ''
125-
@echo -e '\033[90mGenerated by GoMakeGen 3.3.2\033[0m\n'
124+
@echo ''
125+
@printf '\033[90mGenerated by GoMakeGen 3.3.3\033[0m\n\n'
126126

127127
################################################################################

bz2/bz2.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package bz2
33

44
// ////////////////////////////////////////////////////////////////////////////////// //
55
// //
6-
// Copyright (c) 2023 ESSENTIAL KAOS //
6+
// Copyright (c) 2025 ESSENTIAL KAOS //
77
// Apache License, Version 2.0 <https://www.apache.org/licenses/LICENSE-2.0> //
88
// //
99
// ////////////////////////////////////////////////////////////////////////////////// //

bz2/bz2_test.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,19 @@ package bz2
22

33
// ////////////////////////////////////////////////////////////////////////////////// //
44
// //
5-
// Copyright (c) 2023 ESSENTIAL KAOS //
5+
// Copyright (c) 2025 ESSENTIAL KAOS //
66
// Apache License, Version 2.0 <https://www.apache.org/licenses/LICENSE-2.0> //
77
// //
88
// ////////////////////////////////////////////////////////////////////////////////// //
99

1010
import (
11+
"crypto/sha256"
1112
"os"
1213
"strings"
1314
"testing"
1415

1516
"github.com/essentialkaos/ek/v13/fsutil"
16-
"github.com/essentialkaos/ek/v13/hash"
17+
"github.com/essentialkaos/ek/v13/hashutil"
1718

1819
. "github.com/essentialkaos/check"
1920
)
@@ -44,7 +45,7 @@ func (s *BZ2Suite) TestUnpack(c *C) {
4445
c.Assert(fsutil.IsExist(s.Dir+"/data.txt"), Equals, true)
4546
c.Assert(fsutil.GetMode(s.Dir+"/data.txt"), Equals, os.FileMode(0640))
4647

47-
c.Assert(hash.FileHash(s.Dir+"/data.txt"), Equals, "918c03a211adc19a466c9db22efa575efb6c488fd41c70e57b1ec0920f1a1d8c")
48+
c.Assert(hashutil.File(s.Dir+"/data.txt", sha256.New()).String(), Equals, "918c03a211adc19a466c9db22efa575efb6c488fd41c70e57b1ec0920f1a1d8c")
4849
}
4950

5051
func (s *BZ2Suite) TestErrors(c *C) {

bz2/example_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package bz2
22

33
// ////////////////////////////////////////////////////////////////////////////////// //
44
// //
5-
// Copyright (c) 2023 ESSENTIAL KAOS //
5+
// Copyright (c) 2025 ESSENTIAL KAOS //
66
// Apache License, Version 2.0 <https://www.apache.org/licenses/LICENSE-2.0> //
77
// //
88
// ////////////////////////////////////////////////////////////////////////////////// //

example_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package npck
22

33
// ////////////////////////////////////////////////////////////////////////////////// //
44
// //
5-
// Copyright (c) 2023 ESSENTIAL KAOS //
5+
// Copyright (c) 2025 ESSENTIAL KAOS //
66
// Apache License, Version 2.0 <https://www.apache.org/licenses/LICENSE-2.0> //
77
// //
88
// ////////////////////////////////////////////////////////////////////////////////// //

go.mod

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
module github.com/essentialkaos/npck
22

3-
go 1.23.6
3+
go 1.23.10
44

55
require (
66
github.com/essentialkaos/check v1.4.1
7-
github.com/essentialkaos/ek/v13 v13.27.3
7+
github.com/essentialkaos/ek/v13 v13.33.0
88
github.com/klauspost/compress v1.18.0
99
github.com/pierrec/lz4/v4 v4.1.22
10-
github.com/ulikunitz/xz v0.5.12
10+
github.com/ulikunitz/xz v0.5.14
1111
)
1212

1313
require (
1414
github.com/kr/pretty v0.3.1 // indirect
1515
github.com/kr/text v0.2.0 // indirect
1616
github.com/rogpeppe/go-internal v1.14.1 // indirect
17-
golang.org/x/sys v0.33.0 // indirect
17+
golang.org/x/sys v0.34.0 // indirect
1818
)

go.sum

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E=
22
github.com/essentialkaos/check v1.4.1 h1:SuxXzrbokPGTPWxGRnzy0hXvtb44mtVrdNxgPa1s4c8=
33
github.com/essentialkaos/check v1.4.1/go.mod h1:xQOYwFvnxfVZyt5Qvjoa1SxcRqu5VyP77pgALr3iu+M=
4-
github.com/essentialkaos/ek/v13 v13.27.3 h1:B77pHzp7uz2mTQZidmeKUtdQXr4ywjxQEQa6hKlbKO4=
5-
github.com/essentialkaos/ek/v13 v13.27.3/go.mod h1:8/TJJ/5C5F1MC1iCMyepkRHoKGjPt4U6OzQvmgFN+9U=
4+
github.com/essentialkaos/ek/v13 v13.33.0 h1:XK61hR8DDxLBaWNL+ktDqXMatcSaTfW0riR9GrMrZOg=
5+
github.com/essentialkaos/ek/v13 v13.33.0/go.mod h1:J6lRensG8sozVzqtxpLYA4nIeOrdn/YBUkL4KvcxYo0=
66
github.com/klauspost/compress v1.18.0 h1:c/Cqfb0r+Yi+JtIEq73FWXVkRonBlf0CRNYc8Zttxdo=
77
github.com/klauspost/compress v1.18.0/go.mod h1:2Pp+KzxcywXVXMr50+X0Q/Lsb43OQHYWRCY2AiWywWQ=
88
github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE=
@@ -15,7 +15,7 @@ github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e/go.mod h1:pJLUxLENpZxwdsK
1515
github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/fJaraNFVN+nFs=
1616
github.com/rogpeppe/go-internal v1.14.1 h1:UQB4HGPB6osV0SQTLymcB4TgvyWu6ZyliaW0tI/otEQ=
1717
github.com/rogpeppe/go-internal v1.14.1/go.mod h1:MaRKkUm5W0goXpeCfT7UZI6fk/L7L7so1lCWt35ZSgc=
18-
github.com/ulikunitz/xz v0.5.12 h1:37Nm15o69RwBkXM0J6A5OlE67RZTfzUxTj8fB3dfcsc=
19-
github.com/ulikunitz/xz v0.5.12/go.mod h1:nbz6k7qbPmH4IRqmfOplQw/tblSgqTqBwxkY0oWt/14=
20-
golang.org/x/sys v0.33.0 h1:q3i8TbbEz+JRD9ywIRlyRAQbM0qF7hu24q3teo2hbuw=
21-
golang.org/x/sys v0.33.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k=
18+
github.com/ulikunitz/xz v0.5.14 h1:uv/0Bq533iFdnMHZdRBTOlaNMdb1+ZxXIlHDZHIHcvg=
19+
github.com/ulikunitz/xz v0.5.14/go.mod h1:nbz6k7qbPmH4IRqmfOplQw/tblSgqTqBwxkY0oWt/14=
20+
golang.org/x/sys v0.34.0 h1:H5Y5sJ2L2JRdyv7ROF1he/lPdvFsd0mJHFw2ThKHxLA=
21+
golang.org/x/sys v0.34.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k=

gz/example_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package gz
22

33
// ////////////////////////////////////////////////////////////////////////////////// //
44
// //
5-
// Copyright (c) 2023 ESSENTIAL KAOS //
5+
// Copyright (c) 2025 ESSENTIAL KAOS //
66
// Apache License, Version 2.0 <https://www.apache.org/licenses/LICENSE-2.0> //
77
// //
88
// ////////////////////////////////////////////////////////////////////////////////// //

0 commit comments

Comments
 (0)