Skip to content

Commit 3e10cdd

Browse files
authored
Bump up a bunch of dependencies (#211)
1 parent 67cbc89 commit 3e10cdd

File tree

17 files changed

+67
-143
lines changed

17 files changed

+67
-143
lines changed

.github/workflows/CI.yaml

Lines changed: 28 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -33,87 +33,42 @@ concurrency:
3333
jobs:
3434
check-license:
3535
name: License header
36-
if: (github.event_name == 'schedule' && github.repository == 'apache/skywalking-cli') || (github.event_name != 'schedule')
36+
if: github.repository == 'apache/skywalking-cli'
3737
runs-on: ubuntu-latest
3838
steps:
39-
- uses: actions/checkout@v3
39+
- uses: actions/checkout@v4
4040

4141
- name: Check License Header
4242
uses: apache/skywalking-eyes@5dfa68f93380a5e57259faaf95088b7f133b5778
4343
env:
4444
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4545

4646
- name: Setup Go
47-
uses: actions/setup-go@v4
47+
uses: actions/setup-go@v5
4848
with:
49-
go-version: "1.18"
49+
go-version: "1.24"
5050

5151
- name: Check Dependencies License
5252
run: make dependency-license
5353

54-
55-
changes:
56-
runs-on: ubuntu-latest
57-
if: github.event_name != 'schedule'
58-
timeout-minutes: 10
59-
outputs:
60-
cli: ${{ steps.filter-cli.outputs.any_modified }}
61-
steps:
62-
- uses: actions/checkout@v3 # required for push event
63-
with:
64-
fetch-depth: 0
65-
- name: Check for CLI source changes
66-
id: filter-cli
67-
# The GHA version is pinned by infra
68-
uses: tj-actions/changed-files@v43.0.0
69-
with:
70-
files_from_source_file: .github/file-filters.txt
71-
- name: List all modified files
72-
if: steps.filter-cli.outputs.any_modified == 'true'
73-
run: |
74-
echo "Files that have changed or modified:"
75-
echo "Filter-cli: ${{ steps.filter-cli.outputs.all_changed_and_modified_files }}"
76-
77-
78-
golang-lint:
79-
name: Golang Lint
80-
runs-on: ubuntu-latest
81-
needs: [changes]
82-
if: |
83-
( always() && ! cancelled() ) &&
84-
((github.event_name == 'schedule' && github.repository == 'apache/skywalking-cli') || needs.changes.outputs.cli == 'true')
85-
steps:
86-
- uses: actions/checkout@v3
87-
- name: Set up Go
88-
uses: actions/setup-go@v4
89-
with:
90-
go-version: 1.18
91-
92-
- name: golangci-lint
93-
uses: golangci/golangci-lint-action@v6
94-
with:
95-
version: v1.50.0
96-
args: --timeout 5m
97-
98-
9954
build:
10055
name: Build
101-
needs: [changes]
10256
runs-on: ubuntu-latest
103-
if: |
104-
( always() && ! cancelled() ) &&
105-
((github.event_name == 'schedule' && github.repository == 'apache/skywalking-cli') || needs.changes.outputs.cli == 'true')
57+
if: github.repository == 'apache/skywalking-cli'
10658
steps:
107-
- uses: actions/checkout@v3
59+
- uses: actions/checkout@v4
10860
- name: Set up Go
109-
uses: actions/setup-go@v4
61+
uses: actions/setup-go@v5
11062
with:
111-
go-version: 1.18
63+
go-version: 1.24
11264

11365
- name: Check code generation
11466
run: make check-codegen
11567

116-
- uses: actions/upload-artifact@v3
68+
- name: Lint
69+
run: make lint
70+
71+
- uses: actions/upload-artifact@v4
11772
if: failure()
11873
with:
11974
name: check-diff
@@ -129,20 +84,20 @@ jobs:
12984
command-tests:
13085
name: Command Tests
13186
runs-on: ubuntu-latest
132-
needs: [changes]
133-
if: |
134-
( always() && ! cancelled() ) &&
135-
((github.event_name == 'schedule' && github.repository == 'apache/skywalking-cli') || needs.changes.outputs.cli == 'true')
87+
if: github.repository == 'apache/skywalking-cli'
13688
strategy:
13789
matrix:
13890
oap:
13991
- a65a6e0ff2ef9c716131b36172399076307c35f1 # Feb 27th, 2024
14092
steps:
141-
- uses: actions/checkout@v3
93+
- uses: actions/checkout@v4
14294
- name: Set up Go
143-
uses: actions/setup-go@v4
95+
uses: actions/setup-go@v5
14496
with:
145-
go-version: 1.18
97+
go-version: 1.24
98+
99+
- name: Install swctl
100+
run: make install DESTDIR=/usr/local/bin
146101

147102
- name: Test commands
148103
uses: apache/skywalking-infra-e2e@cf589b4a0b9f8e6f436f78e9cfd94a1ee5494180
@@ -155,16 +110,13 @@ jobs:
155110
unit-tests:
156111
name: Unit Tests
157112
runs-on: ubuntu-latest
158-
needs: [changes]
159-
if: |
160-
( always() && ! cancelled() ) &&
161-
((github.event_name == 'schedule' && github.repository == 'apache/skywalking-cli') || needs.changes.outputs.cli == 'true')
113+
if: github.repository == 'apache/skywalking-cli'
162114
steps:
163-
- uses: actions/checkout@v3
115+
- uses: actions/checkout@v4
164116
- name: setup go
165-
uses: actions/setup-go@v4
117+
uses: actions/setup-go@v5
166118
with:
167-
go-version: '1.18'
119+
go-version: '1.24'
168120

169121
- name: run unit tests and report coverage
170122
working-directory: ./
@@ -176,7 +128,6 @@ jobs:
176128
name: Required
177129
needs:
178130
- check-license
179-
- golang-lint
180131
- build
181132
- command-tests
182133
- unit-tests
@@ -185,15 +136,12 @@ jobs:
185136
steps:
186137
- name: Merge Requirement
187138
run: |
188-
execute=${{ needs.changes.outputs.cli }}
189139
checkLicense=${{ needs.check-license.result }}
190-
[[ ${checkLicense} == 'success' ]] || exit -1;
191-
golangLint=${{ needs.golang-lint.result }};
140+
[[ ${checkLicense} == 'success' ]] || exit 1;
192141
build=${{ needs.build.result }};
193142
commandTests=${{ needs.command-tests.result }};
194143
unitTests=${{ needs.unit-tests.result }};
195-
[[ ${golangLint} == 'success' ]] || [[ ${execute} != 'true' && ${golangLint} == 'skipped' ]] || exit -2;
196-
[[ ${build} == 'success' ]] || [[ ${execute} != 'true' && ${build} == 'skipped' ]] || exit -3;
197-
[[ ${commandTests} == 'success' ]] || [[ ${execute} != 'true' && ${commandTests} == 'skipped' ]] || exit -4;
198-
[[ ${unitTests} == 'success' ]] || [[ ${execute} != 'true' && ${unitTests} == 'skipped' ]] || exit -5;
199-
exit 0;
144+
[[ ${build} == 'success' ]] || [[ ${build} == 'skipped' ]] || exit 3;
145+
[[ ${commandTests} == 'success' ]] || [[ ${commandTests} == 'skipped' ]] || exit 4;
146+
[[ ${unitTests} == 'success' ]] || [[ ${unitTests} == 'skipped' ]] || exit 5;
147+
exit 0;

.github/workflows/publish-docker.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,12 @@ jobs:
4343
- name: Set up Go
4444
uses: actions/setup-go@v4
4545
with:
46-
go-version: 1.18
46+
go-version: 1.24
4747
- name: Log in to the Container registry
4848
uses: docker/login-action@v1.10.0
4949
with:
5050
registry: ${{ env.HUB }}
5151
username: ${{ github.actor }}
5252
password: ${{ secrets.GITHUB_TOKEN }}
5353
- name: Build and push docker images
54-
run: make docker.push || make docker.push
54+
run: make docker.push || make docker.push

.golangci.yml

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,25 +16,15 @@
1616

1717
linters-settings:
1818
govet:
19-
check-shadowing: true
20-
golint:
21-
min-confidence: 0
19+
enable:
20+
- shadow
2221
gocyclo:
2322
min-complexity: 15
24-
maligned:
25-
suggest-new: true
2623
dupl:
2724
threshold: 200
2825
goconst:
2926
min-len: 2
3027
min-occurrences: 2
31-
depguard:
32-
list-type: blacklist
33-
packages:
34-
-
35-
include-go-root: true
36-
packages-with-error-messages:
37-
fmt: "logging is allowed only by logutils.Log"
3828
misspell:
3929
locale: US
4030
lll:
@@ -60,7 +50,6 @@ linters-settings:
6050
linters:
6151
enable:
6252
- bodyclose
63-
- depguard
6453
- dogsled
6554
- dupl
6655
- errcheck

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515

16-
FROM golang:1.18 AS builder
16+
FROM golang:1.24 AS builder
1717

1818
ARG VERSION
1919

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ deps:
5858
@$(GO_GET) -v -t -d ./...
5959

6060
$(GO_LINT):
61-
@$(GO_LINT) version > /dev/null 2>&1 || curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(GO_PATH)/bin v1.50.0
61+
@$(GO_LINT) version > /dev/null 2>&1 || go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.64.0
6262
$(LICENSE_EYE):
6363
@$(LICENSE_EYE) --version > /dev/null 2>&1 || go install github.com/apache/skywalking-eyes/cmd/license-eye@d38fe05
6464

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/apache/skywalking-cli
22

3-
go 1.18
3+
go 1.24
44

55
require (
66
github.com/apache/skywalking-swck/operator v0.0.0-20220815142653-ed08076b7433

internal/commands/completion/bash.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ var bashCommand = &cli.Command{
2828
Aliases: []string{"b"},
2929
Usage: "Output shell completion code for bash",
3030
ArgsUsage: "[parameters...]",
31-
Action: func(ctx *cli.Context) error {
31+
Action: func(_ *cli.Context) error {
3232
fmt.Print(bashScript)
3333
return nil
3434
},

internal/commands/completion/fish.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ var fishCommand = &cli.Command{
2828
Aliases: []string{"f"},
2929
Usage: "Output shell completion code for fish",
3030
ArgsUsage: "[parameters...]",
31-
Action: func(ctx *cli.Context) error {
31+
Action: func(_ *cli.Context) error {
3232
fmt.Print(fishScript)
3333
return nil
3434
},

internal/commands/completion/powershell.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ var powershellCommand = &cli.Command{
2828
Aliases: []string{"p"},
2929
Usage: "Output shell completion code for powershell",
3030
ArgsUsage: "[parameters...]",
31-
Action: func(ctx *cli.Context) error {
31+
Action: func(_ *cli.Context) error {
3232
fmt.Print(powershellScript)
3333
return nil
3434
},

internal/commands/completion/zsh.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ var zshCommand = &cli.Command{
2828
Aliases: []string{"z"},
2929
Usage: "Output shell completion code for zsh",
3030
ArgsUsage: "[parameters...]",
31-
Action: func(ctx *cli.Context) error {
31+
Action: func(_ *cli.Context) error {
3232
fmt.Print(zshScript)
3333
return nil
3434
},

0 commit comments

Comments
 (0)