Skip to content

Commit 4af3ee8

Browse files
authored
Version 0.48.1-RC1 (#3775)
* Update version.txt * Replace mholt/archiver with mholt/archives. * Pass blob readers to unarchivers rather than having a dedicated blob unarchiver. * Fixed unarchiving of links. * Try to fix hardlink failures. Revert "Try to fix hardlink failures." This reverts commit feb27a3. Update unarchiver.go * Use correct []byte reader interface. * ProxyReader needs to implement io.Seeker for unpacking zip archives. * Address CVEs. * Placate check-format * Update macOS runner. macos-15 is ARM, so we need macos-15-intel. * Updated golangci-lint dev dependency and migrated config. * Allow performance tests to run for up to a minute. * Updated changelog for 0.48.1. * Updated GitHub Actions to Go 1.24.
1 parent 78ac629 commit 4af3ee8

File tree

588 files changed

+116780
-25461
lines changed

Some content is hidden

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

588 files changed

+116780
-25461
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
- 1.24.6
4040
sys:
4141
- { os: ubuntu-latest }
42-
- { os: macos-13, shell: zsh }
42+
- { os: macos-15-intel, shell: zsh }
4343
- { os: macos-latest, shell: zsh }
4444
- { os: windows-2025 }
4545
- { os: ubuntu-24.04-arm }
@@ -443,7 +443,7 @@ jobs:
443443
name: Install Go
444444
uses: actions/setup-go@v5
445445
with:
446-
go-version: 1.23.x
446+
go-version: 1.24.x
447447

448448
- # === Install State Tool ===
449449
name: Install State Tool
@@ -512,7 +512,7 @@ jobs:
512512
with:
513513
name: |
514514
session-build-ubuntu-latest
515-
session-build-macos-13
515+
session-build-macos-15-intel
516516
session-build-macos-latest
517517
session-build-windows-2025
518-
session-build-ubuntu-24.04-arm
518+
session-build-ubuntu-24.04-arm

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
name: Install Go
3232
uses: actions/setup-go@v5
3333
with:
34-
go-version: '1.23.x'
34+
go-version: '1.24.x'
3535

3636
- # === Install State Tool ===
3737
name: Install State Tool

.golangci.yaml

Lines changed: 57 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,57 @@
1-
issues:
2-
exclude-dirs:
3-
- vendor
4-
exclude-rules:
5-
- linters:
6-
- staticcheck
7-
text: "SA9004"
8-
9-
linters-settings:
10-
errcheck:
11-
exclude-functions:
12-
- fmt.Fprintln
13-
- (*github.com/ActiveState/termtest.TermTest).Expect
14-
- (*github.com/ActiveState/termtest.TermTest).ExpectExitCode
15-
- (*github.com/ActiveState/termtest.TermTest).ExpectNotExitCode
16-
- (*github.com/ActiveState/termtest.TermTest).ExpectRe
17-
- (*github.com/ActiveState/termtest.TermTest).Expect
18-
- (*github.com/ActiveState/termtest.TermTest).WaitForInput
19-
- (*github.com/ActiveState/termtest.TermTest).SendLine
20-
- (*github.com/ActiveState/termtest.TermTest).ExpectInput
21-
- (*github.com/ActiveState/termtest.TermTest).ExpectExit
22-
- (*github.com/ActiveState/termtest.TermTest).Wait
23-
- (*github.com/ActiveState/logging.fileHandler).Printf
24-
- (*github.com/ActiveState/logging.standardHandler).Printf
25-
- (*github.com/ActiveState/cli/internal/testhelpers/e2e.Session).Close
26-
- (*github.com/ActiveState/cli/internal/testhelpers/e2e.SpawnedCmd).ExpectInput
27-
- (*github.com/ActiveState/cli/internal/testhelpers/e2e.SpawnedCmd).Send
28-
- (*github.com/ActiveState/cli/internal/testhelpers/e2e.SpawnedCmd).SendLine
29-
- (*github.com/ActiveState/cli/internal/testhelpers/e2e.SpawnedCmd).SendEnter
30-
- (*github.com/ActiveState/cli/internal/testhelpers/e2e.SpawnedCmd).SendKeyDown
31-
- (*github.com/ActiveState/cli/internal/testhelpers/e2e.SpawnedCmd).ExpectRe
32-
- (*github.com/ActiveState/cli/internal/testhelpers/e2e.SpawnedCmd).Wait
33-
- (*github.com/ActiveState/cli/internal/testhelpers/e2e.Session).ClearCache
34-
- (*github.com/ActiveState/cli/internal/testhelpers/e2e.Dirs).Close
35-
- github.com/ActiveState/cli/internal/testhelpers/osutil.RemoveConfigFile
36-
- (*github.com/ActiveState/cli/internal/logging.standardHandler).Emit
37-
- (*github.com/ActiveState/cli/internal/logging.fileHandler).Emit
38-
govet:
39-
disable:
40-
- composites
41-
42-
# When issues occur with linting us the snippet below to help with debugging
43-
# linters:
44-
# # Disable all and re-enable the default linters as a starting point.
45-
# disable-all: true
46-
# enable:
47-
# - errcheck
48-
# - gosimple
49-
# - govet
50-
# - ineffassign
51-
# - staticcheck
52-
# - typecheck
53-
# - unused
1+
version: "2"
2+
linters:
3+
settings:
4+
errcheck:
5+
exclude-functions:
6+
- fmt.Fprintln
7+
- (*github.com/ActiveState/termtest.TermTest).Expect
8+
- (*github.com/ActiveState/termtest.TermTest).ExpectExitCode
9+
- (*github.com/ActiveState/termtest.TermTest).ExpectNotExitCode
10+
- (*github.com/ActiveState/termtest.TermTest).ExpectRe
11+
- (*github.com/ActiveState/termtest.TermTest).Expect
12+
- (*github.com/ActiveState/termtest.TermTest).WaitForInput
13+
- (*github.com/ActiveState/termtest.TermTest).SendLine
14+
- (*github.com/ActiveState/termtest.TermTest).ExpectInput
15+
- (*github.com/ActiveState/termtest.TermTest).ExpectExit
16+
- (*github.com/ActiveState/termtest.TermTest).Wait
17+
- (*github.com/ActiveState/logging.fileHandler).Printf
18+
- (*github.com/ActiveState/logging.standardHandler).Printf
19+
- (*github.com/ActiveState/cli/internal/testhelpers/e2e.Session).Close
20+
- (*github.com/ActiveState/cli/internal/testhelpers/e2e.SpawnedCmd).ExpectInput
21+
- (*github.com/ActiveState/cli/internal/testhelpers/e2e.SpawnedCmd).Send
22+
- (*github.com/ActiveState/cli/internal/testhelpers/e2e.SpawnedCmd).SendLine
23+
- (*github.com/ActiveState/cli/internal/testhelpers/e2e.SpawnedCmd).SendEnter
24+
- (*github.com/ActiveState/cli/internal/testhelpers/e2e.SpawnedCmd).SendKeyDown
25+
- (*github.com/ActiveState/cli/internal/testhelpers/e2e.SpawnedCmd).ExpectRe
26+
- (*github.com/ActiveState/cli/internal/testhelpers/e2e.SpawnedCmd).Wait
27+
- (*github.com/ActiveState/cli/internal/testhelpers/e2e.Session).ClearCache
28+
- (*github.com/ActiveState/cli/internal/testhelpers/e2e.Dirs).Close
29+
- github.com/ActiveState/cli/internal/testhelpers/osutil.RemoveConfigFile
30+
- (*github.com/ActiveState/cli/internal/logging.standardHandler).Emit
31+
- (*github.com/ActiveState/cli/internal/logging.fileHandler).Emit
32+
govet:
33+
disable:
34+
- composites
35+
exclusions:
36+
generated: lax
37+
presets:
38+
- comments
39+
- common-false-positives
40+
- legacy
41+
- std-error-handling
42+
rules:
43+
- linters:
44+
- staticcheck
45+
text: SA9004
46+
paths:
47+
- vendor
48+
- third_party$
49+
- builtin$
50+
- examples$
51+
formatters:
52+
exclusions:
53+
generated: lax
54+
paths:
55+
- third_party$
56+
- builtin$
57+
- examples$

activestate.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,12 @@ scripts:
5555
if: ne .Shell "cmd"
5656
value: |
5757
if ! type "go" &> /dev/null; then
58-
echo "go is not installed. Please install Go version 1.23 or above."
58+
echo "go is not installed. Please install Go version 1.24 or above."
5959
exit 1
6060
fi
6161
if ! type "golangci-lint" &> /dev/null; then
6262
echo "golangci-lint was not found on your PATH. Installing .."
63-
go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.59.1
63+
go install github.com/golangci/golangci-lint/cmd/golangci-lint@v2.6.2
6464
fi
6565
git config core.hooksPath .githooks
6666
if ! type "swagger" &> /dev/null; then

changelog.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to
77
[Semantic Versioning](https://semver.org/spec/v2.0.0.html).
88

9+
## 0.48.1
10+
11+
### Security
12+
13+
Addressed all known, fixable CVEs.
14+
915
## 0.48.0
1016

1117
### Added

go.mod

Lines changed: 25 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/ActiveState/cli
22

3-
go 1.24.6
3+
go 1.24.9
44

55
require (
66
github.com/99designs/gqlgen v0.17.54
@@ -51,11 +51,11 @@ require (
5151
github.com/thoas/go-funk v0.8.0
5252
github.com/vbauerster/mpb/v7 v7.1.5
5353
github.com/vektah/gqlparser/v2 v2.5.16
54-
golang.org/x/crypto v0.41.0 // indirect
55-
golang.org/x/net v0.43.0
56-
golang.org/x/sys v0.35.0
57-
golang.org/x/term v0.34.0
58-
golang.org/x/text v0.28.0
54+
golang.org/x/crypto v0.45.0 // indirect
55+
golang.org/x/net v0.47.0
56+
golang.org/x/sys v0.38.0
57+
golang.org/x/term v0.37.0
58+
golang.org/x/text v0.31.0
5959
gopkg.in/AlecAivazis/survey.v1 v1.8.8
6060
gopkg.in/toast.v1 v1.0.0-20180812000517-0a84660828b2
6161
gopkg.in/yaml.v2 v2.4.0
@@ -74,9 +74,8 @@ require (
7474
github.com/charmbracelet/lipgloss v0.9.1
7575
github.com/go-git/go-git/v5 v5.13.1
7676
github.com/gowebpki/jcs v1.0.1
77-
github.com/klauspost/compress v1.11.4
7877
github.com/mark3labs/mcp-go v0.33.0
79-
github.com/mholt/archiver/v3 v3.5.1
78+
github.com/mholt/archives v0.1.5
8079
github.com/zijiren233/yaml-comment v0.2.1
8180
)
8281

@@ -85,7 +84,8 @@ require (
8584
github.com/ActiveState/pty v0.0.0-20230628221854-6fb90eb08a14 // indirect
8685
github.com/Microsoft/go-winio v0.6.1 // indirect
8786
github.com/ProtonMail/go-crypto v1.1.3 // indirect
88-
github.com/andybalholm/brotli v1.0.1 // indirect
87+
github.com/STARRY-S/zip v0.2.3 // indirect
88+
github.com/andybalholm/brotli v1.2.0 // indirect
8989
github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.11 // indirect
9090
github.com/aws/aws-sdk-go-v2/credentials v1.17.71 // indirect
9191
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.33 // indirect
@@ -102,6 +102,9 @@ require (
102102
github.com/aws/aws-sdk-go-v2/service/sts v1.34.1 // indirect
103103
github.com/aws/smithy-go v1.22.4 // indirect
104104
github.com/aymanbagabas/go-osc52/v2 v2.0.1 // indirect
105+
github.com/bodgit/plumbing v1.3.0 // indirect
106+
github.com/bodgit/sevenzip v1.6.1 // indirect
107+
github.com/bodgit/windows v1.0.1 // indirect
105108
github.com/cloudflare/circl v1.6.1 // indirect
106109
github.com/containerd/console v1.0.4-0.20230313162750-1ae8d489ac81 // indirect
107110
github.com/cyphar/filepath-securejoin v0.3.6 // indirect
@@ -110,22 +113,29 @@ require (
110113
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
111114
github.com/hashicorp/golang-lru/v2 v2.0.7 // indirect
112115
github.com/hinshun/vt10x v0.0.0-20220301184237-5011da428d02 // indirect
113-
github.com/klauspost/pgzip v1.2.5 // indirect
116+
github.com/klauspost/compress v1.18.0 // indirect
117+
github.com/klauspost/pgzip v1.2.6 // indirect
114118
github.com/kr/pty v1.1.8 // indirect
115119
github.com/lucasb-eyer/go-colorful v1.2.0 // indirect
116120
github.com/maruel/natural v1.1.0 // indirect
117121
github.com/mattn/go-localereader v0.0.1 // indirect
122+
github.com/mikelolasagasti/xz v1.0.1 // indirect
123+
github.com/minio/minlz v1.0.1 // indirect
118124
github.com/muesli/ansi v0.0.0-20211018074035-2e021307bc4b // indirect
119125
github.com/muesli/cancelreader v0.2.2 // indirect
120126
github.com/muesli/reflow v0.3.0 // indirect
121127
github.com/muesli/termenv v0.15.2 // indirect
122-
github.com/pierrec/lz4/v4 v4.1.2 // indirect
128+
github.com/nwaples/rardecode/v2 v2.2.0 // indirect
129+
github.com/pierrec/lz4/v4 v4.1.22 // indirect
123130
github.com/pjbgf/sha1cd v0.3.0 // indirect
124131
github.com/shoenig/go-m1cpu v0.1.6 // indirect
125132
github.com/skeema/knownhosts v1.3.0 // indirect
133+
github.com/sorairolake/lzip-go v0.3.8 // indirect
126134
github.com/sosodev/duration v1.3.1 // indirect
135+
github.com/spf13/afero v1.15.0 // indirect
127136
github.com/yosida95/uritemplate/v3 v3.0.2 // indirect
128-
golang.org/x/sync v0.16.0 // indirect
137+
go4.org v0.0.0-20230225012048-214862532bf5 // indirect
138+
golang.org/x/sync v0.18.0 // indirect
129139
)
130140

131141
require (
@@ -138,7 +148,7 @@ require (
138148
github.com/agnivade/levenshtein v1.1.1 // indirect
139149
github.com/asaskevich/govalidator v0.0.0-20210307081110-f21760c49a8d // indirect
140150
github.com/davecgh/go-spew v1.1.1 // indirect
141-
github.com/dsnet/compress v0.0.2-0.20210315054119-f66993602bf5 // indirect
151+
github.com/dsnet/compress v0.0.2-0.20230904184137-39efe44ab707 // indirect
142152
github.com/emirpasic/gods v1.18.1 // indirect
143153
github.com/gammazero/deque v0.0.0-20200721202602-07291166fe33 // indirect
144154
github.com/go-openapi/analysis v0.20.0 // indirect
@@ -147,7 +157,6 @@ require (
147157
github.com/go-openapi/loads v0.20.2 // indirect
148158
github.com/go-openapi/spec v0.20.3 // indirect
149159
github.com/go-stack/stack v1.8.0 // indirect
150-
github.com/golang/snappy v0.0.4 // indirect
151160
github.com/google/pprof v0.0.0-20200708004538-1a94d8640e99 // indirect
152161
github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 // indirect
153162
github.com/josharian/intern v1.0.0 // indirect
@@ -163,7 +172,6 @@ require (
163172
github.com/mgutz/ansi v0.0.0-20200706080929-d51e80ef957d // indirect
164173
github.com/mitchellh/mapstructure v1.5.0 // indirect
165174
github.com/nu7hatch/gouuid v0.0.0-20131221200532-179d4d0c4d8d // indirect
166-
github.com/nwaples/rardecode v1.1.3 // indirect
167175
github.com/oklog/ulid v1.3.1 // indirect
168176
github.com/opentracing/opentracing-go v1.2.0 // indirect
169177
github.com/pelletier/go-toml v1.7.0 // indirect
@@ -179,12 +187,11 @@ require (
179187
github.com/valyala/bytebufferpool v1.0.0 // indirect
180188
github.com/valyala/fasttemplate v1.2.2 // indirect
181189
github.com/xanzy/ssh-agent v0.3.3 // indirect
182-
github.com/xi2/xz v0.0.0-20171230120015-48954b6210f8 // indirect
183190
github.com/yusufpapurcu/wmi v1.2.4 // indirect
184191
go.mongodb.org/mongo-driver v1.5.3 // indirect
185-
golang.org/x/mod v0.26.0
192+
golang.org/x/mod v0.29.0
186193
golang.org/x/time v0.12.0 // indirect
187-
golang.org/x/tools v0.35.0 // indirect
194+
golang.org/x/tools v0.38.0 // indirect
188195
gopkg.in/fsnotify.v1 v1.4.7 // indirect
189196
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 // indirect
190197
gopkg.in/warnings.v0 v0.1.2 // indirect

0 commit comments

Comments
 (0)