Skip to content

Commit bfb0eff

Browse files
committed
pkg: fix TestToolVersions on macos
(cherry picked from commit fe0accf)
1 parent 1cd59f8 commit bfb0eff

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pkg/lint/lint_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ func TestToolVersions(t *testing.T) {
6565
"helm-docs -v",
6666
"ct version",
6767
"changie --version",
68-
"aws --version",
68+
"aws --version | cut -d ' ' -f 1-2", // cut removes os/arch
6969
} {
7070
out := sh(cmd)
7171
bin := strings.SplitN(cmd, " ", 2)[0]

pkg/lint/testdata/tool-versions.txtar

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
version.BuildInfo{Version:"v3.17.2", GitCommit:"v3.17.2", GitTreeState:"", GoVersion:"go1.24.1"}
22

33
-- aws --
4-
# aws --version
5-
aws-cli/2.24.24 Python/3.12.9 Linux/6.1.128-136.201.amzn2023.x86_64 source/x86_64
4+
# aws --version | cut -d ' ' -f 1-2
5+
aws-cli/2.24.24 Python/3.12.9
66

77
-- changie --
88
# changie --version

0 commit comments

Comments
 (0)