Skip to content

Commit 74f586b

Browse files
committed
chore: Upgrade to go1.26, update dependencies, and improve build
Signed-off-by: Arthur Amstutz <[email protected]>
1 parent 7775f9d commit 74f586b

File tree

5 files changed

+146
-127
lines changed

5 files changed

+146
-127
lines changed

.cds/workflows/build.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on: [push]
44

55
jobs:
66
build:
7-
runs-on: library/go-1-24
7+
runs-on: library/go-1-26
88
steps:
99
- uses: actions/checkout
1010
- run: |-
@@ -17,7 +17,7 @@ jobs:
1717
if-no-files-found: error
1818

1919
build-wasm:
20-
runs-on: library/go-1-24
20+
runs-on: library/go-1-26
2121
steps:
2222
- uses: actions/checkout
2323
- run: |-

.github/pull_request_template.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,5 @@ Please delete options that are not relevant.
1818

1919
- [ ] My code follows the style guidelines of this project
2020
- [ ] I have commented my code
21-
- [ ] I updated the documentation by running `make doc`
2221
- [ ] I ran `go mod tidy`
2322
- [ ] I have added tests that prove my fix is effective or that my feature works

.github/workflows/build.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
runs-on: ubuntu-latest
99
strategy:
1010
matrix:
11-
go-version: [ '1.24.x', '1.25.x' ]
11+
go-version: [ '1.24.x', '1.25.x', '1.26.x' ]
1212

1313
steps:
1414
- uses: actions/checkout@v5
@@ -18,6 +18,10 @@ jobs:
1818
go-version: ${{ matrix.go-version }}
1919
- name: Install dependencies
2020
run: go get ./...
21+
- name: Check documentation is up to date
22+
run: |
23+
make doc
24+
git diff --exit-code || (echo "Documentation is out of date. Please run 'make doc' and commit the result." && exit 1)
2125
- name: Build binary
2226
run: make
2327
- name: Build WASM binary

go.mod

Lines changed: 37 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,57 @@
11
module github.com/ovh/ovhcloud-cli
22

3-
go 1.24.9
3+
go 1.26.0
44

55
require (
6-
code.cloudfoundry.org/bytefmt v0.62.0
6+
code.cloudfoundry.org/bytefmt v0.64.0
77
dario.cat/mergo v1.0.2
88
github.com/PaesslerAG/gval v1.2.4
99
github.com/PaesslerAG/jsonpath v0.1.1
1010
github.com/amstuta/fx v0.0.0-20250411141758-99b16761e78b
11-
github.com/charmbracelet/bubbles v0.20.0
12-
github.com/charmbracelet/bubbletea v1.3.4
13-
github.com/charmbracelet/glamour v0.9.1
14-
github.com/charmbracelet/lipgloss v1.1.0
15-
github.com/charmbracelet/x/ansi v0.8.0
16-
github.com/charmbracelet/x/term v0.2.1
17-
github.com/getkin/kin-openapi v0.132.0
11+
github.com/charmbracelet/bubbles v1.0.0
12+
github.com/charmbracelet/bubbletea v1.3.10
13+
github.com/charmbracelet/glamour v0.10.0
14+
github.com/charmbracelet/lipgloss v1.1.1-0.20250404203927-76690c660834
15+
github.com/charmbracelet/x/ansi v0.11.6
16+
github.com/charmbracelet/x/term v0.2.2
17+
github.com/getkin/kin-openapi v0.133.0
1818
github.com/ghodss/yaml v1.0.0
1919
github.com/jarcoal/httpmock v1.4.1
2020
github.com/mattn/go-shellwords v1.0.12
21-
github.com/maxatome/go-testdeep v1.14.0
21+
github.com/maxatome/go-testdeep v1.15.0
2222
github.com/maxatome/tdhttpmock v1.0.0
2323
github.com/ovh/go-ovh v1.9.0
24-
github.com/spf13/cobra v1.10.1
25-
github.com/spf13/pflag v1.0.9
26-
golang.org/x/exp v0.0.0-20220909182711-5c715a9e8561
24+
github.com/spf13/cobra v1.10.2
25+
github.com/spf13/pflag v1.0.10
26+
golang.org/x/exp v0.0.0-20260218203240-3dfff04db8fa
2727
golang.org/x/sync v0.19.0
28-
golang.org/x/text v0.33.0
29-
gopkg.in/ini.v1 v1.67.0
28+
golang.org/x/text v0.34.0
29+
gopkg.in/ini.v1 v1.67.1
3030
)
3131

3232
require (
33-
github.com/alecthomas/chroma/v2 v2.14.0 // indirect
33+
github.com/alecthomas/chroma/v2 v2.23.1 // indirect
3434
github.com/atotto/clipboard v0.1.4 // indirect
3535
github.com/aymanbagabas/go-osc52/v2 v2.0.1 // indirect
3636
github.com/aymerick/douceur v0.2.0 // indirect
37-
github.com/charmbracelet/colorprofile v0.2.3-0.20250311203215-f60798e515dc // indirect
38-
github.com/charmbracelet/x/cellbuf v0.0.13-0.20250311204145-2c3ea96c31dd // indirect
39-
github.com/cpuguy83/go-md2man/v2 v2.0.6 // indirect
40-
github.com/davecgh/go-spew v1.1.1 // indirect
41-
github.com/dlclark/regexp2 v1.11.0 // indirect
37+
github.com/charmbracelet/colorprofile v0.4.2 // indirect
38+
github.com/charmbracelet/x/cellbuf v0.0.15 // indirect
39+
github.com/charmbracelet/x/exp/slice v0.0.0-20260223110321-bb4be0bca7ac // indirect
40+
github.com/clipperhouse/displaywidth v0.11.0 // indirect
41+
github.com/clipperhouse/uax29/v2 v2.7.0 // indirect
42+
github.com/cpuguy83/go-md2man/v2 v2.0.7 // indirect
43+
github.com/dlclark/regexp2 v1.11.5 // indirect
4244
github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f // indirect
43-
github.com/go-openapi/jsonpointer v0.21.0 // indirect
44-
github.com/go-openapi/swag v0.23.0 // indirect
45+
github.com/go-openapi/jsonpointer v0.22.4 // indirect
46+
github.com/go-openapi/swag/jsonname v0.25.4 // indirect
4547
github.com/gorilla/css v1.0.1 // indirect
4648
github.com/inconshreveable/mousetrap v1.1.0 // indirect
4749
github.com/josharian/intern v1.0.0 // indirect
48-
github.com/lucasb-eyer/go-colorful v1.2.0 // indirect
49-
github.com/mailru/easyjson v0.7.7 // indirect
50+
github.com/lucasb-eyer/go-colorful v1.3.0 // indirect
51+
github.com/mailru/easyjson v0.9.1 // indirect
5052
github.com/mattn/go-isatty v0.0.20 // indirect
5153
github.com/mattn/go-localereader v0.0.1 // indirect
52-
github.com/mattn/go-runewidth v0.0.16 // indirect
54+
github.com/mattn/go-runewidth v0.0.20 // indirect
5355
github.com/microcosm-cc/bluemonday v1.0.27 // indirect
5456
github.com/mohae/deepcopy v0.0.0-20170929034955-c48cc78d4826 // indirect
5557
github.com/muesli/ansi v0.0.0-20230316100256-276c6243b2f6 // indirect
@@ -62,15 +64,15 @@ require (
6264
github.com/rivo/uniseg v0.4.7 // indirect
6365
github.com/russross/blackfriday/v2 v2.1.0 // indirect
6466
github.com/sahilm/fuzzy v0.1.1 // indirect
65-
github.com/shopspring/decimal v1.3.1 // indirect
66-
github.com/stretchr/testify v1.10.0 // indirect
67+
github.com/shopspring/decimal v1.4.0 // indirect
68+
github.com/woodsbury/decimal128 v1.4.0 // indirect
6769
github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e // indirect
68-
github.com/yuin/goldmark v1.7.8 // indirect
69-
github.com/yuin/goldmark-emoji v1.0.5 // indirect
70-
golang.org/x/net v0.49.0 // indirect
71-
golang.org/x/oauth2 v0.30.0 // indirect
72-
golang.org/x/sys v0.40.0 // indirect
73-
golang.org/x/term v0.39.0 // indirect
70+
github.com/yuin/goldmark v1.7.16 // indirect
71+
github.com/yuin/goldmark-emoji v1.0.6 // indirect
72+
go.yaml.in/yaml/v3 v3.0.4 // indirect
73+
golang.org/x/net v0.50.0 // indirect
74+
golang.org/x/oauth2 v0.35.0 // indirect
75+
golang.org/x/sys v0.41.0 // indirect
76+
golang.org/x/term v0.40.0 // indirect
7477
gopkg.in/yaml.v2 v2.4.0 // indirect
75-
gopkg.in/yaml.v3 v3.0.1 // indirect
7678
)

0 commit comments

Comments
 (0)