Skip to content

Commit a464298

Browse files
authored
Merge pull request #76 from openinfradev/release
241015 main from release ( v3.2.1 )
2 parents 38aa631 + fab7581 commit a464298

File tree

14 files changed

+394
-570
lines changed

14 files changed

+394
-570
lines changed
Lines changed: 22 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,35 @@
1-
name: golangci-lint
1+
name: Lint
22
on:
33
push:
44
tags:
55
- v*
66
branches:
77
- main
8-
- 'release**'
8+
- develop
9+
- release
910
pull_request:
11+
branches:
12+
- main
13+
- develop
14+
- release
1015
jobs:
1116
golangci:
1217
name: lint
1318
runs-on: ubuntu-latest
1419
steps:
15-
- uses: actions/checkout@v2
16-
- name: Configure git for private modules
17-
run: git config --global url."https://x-access-token:${{ secrets.PRV_GITHUB_TOKEN }}@github.com/openinfradev".insteadOf "https://github.com/openinfradev"
18-
- name: golangci-lint
19-
uses: golangci/golangci-lint-action@v2
20+
- uses: actions/checkout@v3
21+
- uses: actions/setup-go@v4
2022
with:
21-
# Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version
22-
version: latest
23-
args: --timeout=5m
24-
25-
# Optional: working directory, useful for monorepos
26-
# working-directory: somedir
27-
28-
# Optional: golangci-lint command line arguments.
29-
# args: --issues-exit-code=0
30-
31-
# Optional: show only new issues if it's a pull request. The default value is `false`.
32-
# only-new-issues: true
33-
34-
# Optional: if set to true then the action will use pre-installed Go.
35-
# skip-go-installation: true
36-
37-
# Optional: if set to true then the action don't cache or restore ~/go/pkg.
38-
# skip-pkg-cache: true
39-
40-
# Optional: if set to true then the action don't cache or restore ~/.cache/go-build.
41-
# skip-build-cache: true
23+
go-version: "1.21"
24+
cache: false
25+
- name: Install golangci-lint
26+
# Install golangci-lint from source instead of using
27+
# golangci-lint-action to ensure the golangci-lint binary is built with
28+
# the same Go version we're targeting.
29+
# Avoids incompatibility issues such as:
30+
# - https://github.com/golangci/golangci-lint/issues/2922
31+
# - https://github.com/golangci/golangci-lint/issues/2673
32+
# - https://github.com/golangci/golangci-lint-action/issues/442
33+
run: go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.56.2
34+
- name: Run golangci-lint
35+
run: golangci-lint run --verbose --out-format=github-actions

go.mod

Lines changed: 29 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,56 @@
11
module github.com/openinfradev/tks-client
22

3-
go 1.19
3+
go 1.21
4+
5+
toolchain go1.21.7
46

57
require (
6-
github.com/golang-jwt/jwt/v5 v5.0.0-rc.2
7-
github.com/google/uuid v1.3.0
8+
github.com/golang-jwt/jwt/v5 v5.0.0
9+
github.com/google/uuid v1.6.0
810
github.com/jedib0t/go-pretty v4.3.0+incompatible
911
github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51
10-
github.com/openinfradev/tks-api v0.0.0-20231114072746-0e78ed6bde82
1112
github.com/pkg/errors v0.9.1
1213
github.com/spf13/cobra v1.6.1
1314
github.com/spf13/pflag v1.0.5
14-
golang.org/x/term v0.6.0
15+
golang.org/x/term v0.18.0
1516
gopkg.in/yaml.v2 v2.4.0
16-
sigs.k8s.io/yaml v1.3.0
17+
sigs.k8s.io/yaml v1.4.0
1718
)
1819

1920
require (
2021
github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2 // indirect
21-
github.com/fsnotify/fsnotify v1.5.4 // indirect
22+
github.com/fsnotify/fsnotify v1.7.0 // indirect
2223
github.com/go-openapi/errors v0.20.3 // indirect
2324
github.com/go-openapi/strfmt v0.21.7 // indirect
24-
github.com/golang-jwt/jwt v3.2.2+incompatible // indirect
25-
github.com/gorilla/websocket v1.4.2 // indirect
25+
github.com/golang-jwt/jwt/v4 v4.5.0 // indirect
26+
github.com/gorilla/websocket v1.5.1 // indirect
2627
github.com/hashicorp/hcl v1.0.0 // indirect
2728
github.com/inconshreveable/mousetrap v1.0.1 // indirect
28-
github.com/jinzhu/inflection v1.0.0 // indirect
29-
github.com/jinzhu/now v1.1.5 // indirect
30-
github.com/magiconair/properties v1.8.6 // indirect
29+
github.com/magiconair/properties v1.8.7 // indirect
3130
github.com/mattn/go-runewidth v0.0.14 // indirect
3231
github.com/mitchellh/mapstructure v1.5.0 // indirect
3332
github.com/oklog/ulid v1.3.1 // indirect
34-
github.com/pelletier/go-toml v1.9.5 // indirect
35-
github.com/pelletier/go-toml/v2 v2.0.1 // indirect
33+
github.com/openinfradev/tks-api v0.0.0-20240704014234-67b7f7a5f678 // indirect
34+
github.com/pelletier/go-toml/v2 v2.1.0 // indirect
3635
github.com/rivo/uniseg v0.2.0 // indirect
37-
github.com/sirupsen/logrus v1.9.0 // indirect
38-
github.com/spf13/afero v1.8.2 // indirect
39-
github.com/spf13/cast v1.5.0 // indirect
40-
github.com/spf13/jwalterweatherman v1.1.0 // indirect
41-
github.com/spf13/viper v1.12.0 // indirect
42-
github.com/subosito/gotenv v1.3.0 // indirect
36+
github.com/sagikazarmark/locafero v0.4.0 // indirect
37+
github.com/sagikazarmark/slog-shim v0.1.0 // indirect
38+
github.com/sirupsen/logrus v1.9.3 // indirect
39+
github.com/sourcegraph/conc v0.3.0 // indirect
40+
github.com/spf13/afero v1.11.0 // indirect
41+
github.com/spf13/cast v1.6.0 // indirect
42+
github.com/spf13/viper v1.18.2 // indirect
43+
github.com/subosito/gotenv v1.6.0 // indirect
4344
go.mongodb.org/mongo-driver v1.11.3 // indirect
44-
golang.org/x/crypto v0.7.0 // indirect
45-
golang.org/x/sys v0.6.0 // indirect
46-
golang.org/x/text v0.8.0 // indirect
47-
gopkg.in/ini.v1 v1.66.4 // indirect
45+
go.uber.org/atomic v1.9.0 // indirect
46+
go.uber.org/multierr v1.9.0 // indirect
47+
golang.org/x/crypto v0.21.0 // indirect
48+
golang.org/x/exp v0.0.0-20230905200255-921286631fa9 // indirect
49+
golang.org/x/net v0.22.0 // indirect
50+
golang.org/x/sys v0.18.0 // indirect
51+
golang.org/x/text v0.14.0 // indirect
52+
gopkg.in/ini.v1 v1.67.0 // indirect
4853
gopkg.in/yaml.v3 v3.0.1 // indirect
49-
gorm.io/gorm v1.25.0 // indirect
5054
)
5155

5256
replace github.com/openinfradev/tks-client => ./

0 commit comments

Comments
 (0)