Skip to content

Commit 49b0b40

Browse files
renovate[bot]TimHuynh
andauthored
fix(deps): update module github.com/urfave/cli/v2 to v3 (#208)
* fix(deps): update module github.com/urfave/cli/v2 to v3 * update to v3 * fix(deps): update module github.com/urfave/cli/v2 to v3 * adding v3 changes back * fix reviewdog * add back changes * command context * update gomod * fix linter * make clean * fix test * fix linter * remove additional envvar --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: TimHuynh <tim.huynh@target.com>
1 parent ee9fe2d commit 49b0b40

File tree

11 files changed

+177
-137
lines changed

11 files changed

+177
-137
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1717

1818
- name: install go
19-
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
19+
uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
2020
with:
2121
# use version from go.mod file
2222
go-version-file: 'go.mod'

.github/workflows/codeql-analysis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939

4040
# Initializes the CodeQL tools for scanning.
4141
- name: Initialize CodeQL
42-
uses: github/codeql-action/init@4e828ff8d448a8a6e532957b1811f387a63867e8 # v3.29.4
42+
uses: github/codeql-action/init@b56ba49b26e50535fa1e7f7db0f4f7b4bf65d80d # v3.28.10
4343
with:
4444
languages: ${{ matrix.language }}
4545
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -50,7 +50,7 @@ jobs:
5050
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
5151
# If this step fails, then you should remove it and run the build manually (see below)
5252
- name: Autobuild
53-
uses: github/codeql-action/autobuild@4e828ff8d448a8a6e532957b1811f387a63867e8 # v3.29.4
53+
uses: github/codeql-action/autobuild@b56ba49b26e50535fa1e7f7db0f4f7b4bf65d80d # v3.28.10
5454

5555
# ℹ️ Command-line programs to run using the OS shell.
5656
# 📚 https://git.io/JvXDl
@@ -64,4 +64,4 @@ jobs:
6464
# make release
6565

6666
- name: Perform CodeQL Analysis
67-
uses: github/codeql-action/analyze@4e828ff8d448a8a6e532957b1811f387a63867e8 # v3.29.4
67+
uses: github/codeql-action/analyze@b56ba49b26e50535fa1e7f7db0f4f7b4bf65d80d # v3.28.10

.github/workflows/prerelease.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
fetch-depth: 0
2121

2222
- name: install go
23-
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
23+
uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
2424
with:
2525
# use version from go.mod file
2626
go-version-file: 'go.mod'

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
fetch-depth: 0
2020

2121
- name: install go
22-
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
22+
uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
2323
with:
2424
# use version from go.mod file
2525
go-version-file: 'go.mod'

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1717

1818
- name: install go
19-
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
19+
uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
2020
with:
2121
# use version from go.mod file
2222
go-version-file: 'go.mod'
@@ -28,7 +28,7 @@ jobs:
2828
go test -race -covermode=atomic -coverprofile=coverage.out ./...
2929
3030
- name: coverage
31-
uses: codecov/codecov-action@18283e04ce6e62d37312384ff67231eb8fd56d24 # v5.4.3
31+
uses: codecov/codecov-action@0565863a31f2c772f9f0395002a31e3f06189574 # v5.4.0
3232
with:
3333
token: ${{ secrets.CODECOV_TOKEN }}
3434
file: coverage.out

.github/workflows/validate.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1717

1818
- name: install go
19-
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
19+
uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
2020
with:
2121
# use version from go.mod file
2222
go-version-file: 'go.mod'

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ ARG KUBECTL_VERSION=v1.24.12
99
## docker build --no-cache --target binary -t vela-kubernetes:binary . ##
1010
###############################################################################
1111

12-
FROM alpine:3.22.1@sha256:4bcff63911fcb4448bd4fdacec207030997caf25e9bea4045fa6c8c44de311d1 as binary
12+
FROM alpine:3.21.3@sha256:a8560b36e8b8210634f77d9f7f9efd7ffa463e380b75e2e74aff4511df3ef88c as binary
1313

1414
ARG KUBECTL_VERSION
1515

@@ -21,15 +21,15 @@ RUN chmod 0700 /bin/kubectl
2121
## docker build --no-cache --target certs -t vela-kubernetes:certs . ##
2222
#############################################################################
2323

24-
FROM alpine:3.22.1@sha256:4bcff63911fcb4448bd4fdacec207030997caf25e9bea4045fa6c8c44de311d1 as certs
24+
FROM alpine:3.21.3@sha256:a8560b36e8b8210634f77d9f7f9efd7ffa463e380b75e2e74aff4511df3ef88c as certs
2525

2626
RUN apk add --update --no-cache ca-certificates
2727

2828
#############################################################################
2929
## docker build --no-cache --target gcloud -t vela-kubernetes:gcloud . ##
3030
#############################################################################
3131

32-
FROM gcr.io/google.com/cloudsdktool/google-cloud-cli:531.0.0-alpine@sha256:a0a4e6a671a903ce437d7f2a33fedefd981d60982ca8fafa6bd25eab193d4d2a as gcloud
32+
FROM gcr.io/google.com/cloudsdktool/google-cloud-cli:532.0.0-alpine@sha256:fccf0b0dcfd5a0437887abf0b2f99e9331f441a9e9512213ac6fe8902b53c7ab as gcloud
3333

3434
RUN gcloud components install gke-gcloud-auth-plugin
3535

cmd/vela-kubernetes/command_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
package main
44

55
import (
6-
"context"
76
"fmt"
87
"os/exec"
98
"reflect"
@@ -12,7 +11,8 @@ import (
1211

1312
func TestKubernetes_execCmd(t *testing.T) {
1413
// setup types
15-
e := exec.CommandContext(t.Context(), "echo", "hello")
14+
e := exec.CommandContext(
15+
t.Context(), "echo", "hello")
1616

1717
err := execCmd(e)
1818
if err != nil {
@@ -33,7 +33,7 @@ func TestKubernetes_versionCmd(t *testing.T) {
3333

3434
//nolint:gosec // testing purposes
3535
want := exec.CommandContext(
36-
context.Background(),
36+
t.Context(),
3737
_kubectl,
3838
fmt.Sprintf("--kubeconfig=%s", c.Path),
3939
fmt.Sprintf("--cluster=%s", c.Cluster),
@@ -46,6 +46,6 @@ func TestKubernetes_versionCmd(t *testing.T) {
4646
got := versionCmd(c)
4747

4848
if got.Path != want.Path || !reflect.DeepEqual(got.Args, want.Args) {
49-
t.Errorf("Command is %v, want %v", got, want)
49+
t.Errorf("versionCmd is %v, want %v", got, want)
5050
}
5151
}

0 commit comments

Comments
 (0)