Skip to content

Commit 72a7f0c

Browse files
authored
Merge pull request #118 from StackVista/STAC-23429
STAC-23429 Update golang dependencies and fix broken tests.
2 parents c59cfa9 + 6c8d67b commit 72a7f0c

File tree

5 files changed

+79
-1640
lines changed

5 files changed

+79
-1640
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
- uses: actions/checkout@v5
3232
- uses: actions/setup-go@v5
3333
with:
34-
go-version: "1.21"
34+
go-version: "1.24.x"
3535
cache: false
3636
- name: golangci-lint
3737
uses: golangci/golangci-lint-action@v8
@@ -50,9 +50,9 @@ jobs:
5050

5151
steps:
5252
- uses: actions/checkout@v4
53-
- uses: actions/setup-go@v4
53+
- uses: actions/setup-go@v5
5454
with:
55-
go-version: 1.22
55+
go-version: "1.24.x"
5656
- name: License scanning
5757
run: |
5858
go install github.com/google/go-licenses@latest
@@ -73,9 +73,9 @@ jobs:
7373

7474
steps:
7575
- uses: actions/checkout@v4
76-
- uses: actions/setup-go@v4
76+
- uses: actions/setup-go@v5
7777
with:
78-
go-version: 1.22
78+
go-version: "1.24.x"
7979
- name: Run GoReleaser
8080
uses: goreleaser/goreleaser-action@v5
8181
with:
@@ -94,9 +94,9 @@ jobs:
9494

9595
steps:
9696
- uses: actions/checkout@v4
97-
- uses: actions/setup-go@v4
97+
- uses: actions/setup-go@v5
9898
with:
99-
go-version: 1.22
99+
go-version: "1.24.x"
100100
- name: Run tests
101101
run: go test -v ./...
102102

@@ -115,9 +115,9 @@ jobs:
115115
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
116116
steps:
117117
- uses: actions/checkout@v4
118-
- uses: actions/setup-go@v4
118+
- uses: actions/setup-go@v5
119119
with:
120-
go-version: 1.22
120+
go-version: "1.24.x"
121121
- name: Log in to the Container registry
122122
uses: docker/login-action@v3
123123
if: github.event_name != 'pull_request'

go.mod

Lines changed: 10 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
module github.com/stackvista/stackstate-cli
22

3-
go 1.22
3+
go 1.24
44

5-
toolchain go1.22.1
5+
toolchain go1.24.6
66

77
replace github.com/spf13/pflag => github.com/stackvista/pflag v1.22.0
88

@@ -16,12 +16,14 @@ require (
1616
github.com/spf13/cobra v1.8.0
1717
github.com/spf13/viper v1.18.2
1818
github.com/stretchr/testify v1.9.0
19-
golang.org/x/oauth2 v0.19.0
19+
golang.org/x/oauth2 v0.27.0
2020
gopkg.in/yaml.v3 v3.0.1
2121
)
2222

2323
require (
2424
github.com/blang/semver/v4 v4.0.0
25+
github.com/gurkankaymak/hocon v1.2.21
26+
github.com/mattn/go-runewidth v0.0.15
2527
github.com/mcuadros/go-defaults v1.2.0
2628
github.com/spf13/pflag v1.0.5
2729
k8s.io/kubectl v0.29.4
@@ -30,8 +32,6 @@ require (
3032
require (
3133
github.com/Azure/go-ansiterm v0.0.0-20230124172434-306776ec8161 // indirect
3234
github.com/MakeNowJust/heredoc v1.0.0 // indirect
33-
github.com/PuerkitoBio/purell v1.2.1 // indirect
34-
github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578 // indirect
3535
github.com/chai2010/gettext-go v1.0.2 // indirect
3636
github.com/emicklei/go-restful/v3 v3.12.0 // indirect
3737
github.com/evanphx/json-patch v5.9.0+incompatible // indirect
@@ -43,7 +43,6 @@ require (
4343
github.com/go-openapi/swag v0.23.0 // indirect
4444
github.com/gogo/protobuf v1.3.2 // indirect
4545
github.com/google/btree v1.1.2 // indirect
46-
github.com/google/gnostic v0.7.0 // indirect
4746
github.com/google/gofuzz v1.2.0 // indirect
4847
github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 // indirect
4948
github.com/google/uuid v1.6.0 // indirect
@@ -61,7 +60,6 @@ require (
6160
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
6261
github.com/peterbourgon/diskv v2.0.1+incompatible // indirect
6362
github.com/pkg/errors v0.9.1 // indirect
64-
github.com/russross/blackfriday v1.6.0 // indirect
6563
github.com/xlab/treeprint v1.2.0 // indirect
6664
go.starlark.net v0.0.0-20240411212711-9b43f0afd521 // indirect
6765
golang.org/x/time v0.5.0 // indirect
@@ -85,27 +83,22 @@ require (
8583
atomicgo.dev/cursor v0.2.0 // indirect
8684
atomicgo.dev/keyboard v0.2.9 // indirect
8785
atomicgo.dev/schedule v0.1.0 // indirect
88-
github.com/atomicgo/cursor v0.0.1 // indirect
8986
github.com/containerd/console v1.0.4 // indirect
9087
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
9188
github.com/dlclark/regexp2 v1.11.0 // indirect
9289
github.com/fsnotify/fsnotify v1.7.0 // indirect
9390
github.com/golang/protobuf v1.5.4 // indirect
9491
github.com/google/gnostic-models v0.6.9-0.20230804172637-c7be7c783f49 // indirect
95-
github.com/google/go-cmp v0.6.0 // indirect
9692
github.com/gorilla/websocket v1.5.1 // indirect
97-
github.com/gurkankaymak/hocon v1.2.21 // indirect
9893
github.com/hashicorp/hcl v1.0.0 // indirect
9994
github.com/inconshreveable/mousetrap v1.1.0 // indirect
10095
github.com/lithammer/fuzzysearch v1.1.8 // indirect
10196
github.com/magiconair/properties v1.8.7 // indirect
10297
github.com/mattn/go-colorable v0.1.13 // indirect
10398
github.com/mattn/go-isatty v0.0.20 // indirect
104-
github.com/mattn/go-runewidth v0.0.15 // indirect
10599
github.com/mitchellh/mapstructure v1.5.0 // indirect
106100
github.com/moby/term v0.5.0 // indirect
107101
github.com/mxk/go-flowrate v0.0.0-20140419014527-cca7078d478f // indirect
108-
github.com/pelletier/go-toml v1.9.5 // indirect
109102
github.com/pelletier/go-toml/v2 v2.2.1 // indirect
110103
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
111104
github.com/rivo/uniseg v0.4.7 // indirect
@@ -115,17 +108,15 @@ require (
115108
github.com/sourcegraph/conc v0.3.0 // indirect
116109
github.com/spf13/afero v1.11.0 // indirect
117110
github.com/spf13/cast v1.6.0 // indirect
118-
github.com/spf13/jwalterweatherman v1.1.0 // indirect
119111
github.com/subosito/gotenv v1.6.0 // indirect
120112
github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e // indirect
121113
go.uber.org/multierr v1.11.0 // indirect
122114
golang.org/x/exp v0.0.0-20240416160154-fe59bbe5cc7f // indirect
123-
golang.org/x/net v0.24.0 // indirect
124-
golang.org/x/sync v0.7.0 // indirect
125-
golang.org/x/sys v0.19.0 // indirect
126-
golang.org/x/term v0.19.0 // indirect
127-
golang.org/x/text v0.14.0 // indirect
128-
google.golang.org/appengine v1.6.8 // indirect
115+
golang.org/x/net v0.38.0 // indirect
116+
golang.org/x/sync v0.12.0 // indirect
117+
golang.org/x/sys v0.31.0 // indirect
118+
golang.org/x/term v0.30.0 // indirect
119+
golang.org/x/text v0.23.0 // indirect
129120
google.golang.org/protobuf v1.33.0 // indirect
130121
gopkg.in/evanphx/json-patch.v4 v4.12.0 // indirect
131122
gopkg.in/ini.v1 v1.67.0 // indirect

0 commit comments

Comments
 (0)