Skip to content

Commit 14455b4

Browse files
committed
chore: upgrade Go version to 1.27.0 and update dependencies
1 parent 914cafc commit 14455b4

26 files changed

Lines changed: 83 additions & 78 deletions

File tree

.github/workflows/integration-linux.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,18 @@ jobs:
2828
steps:
2929

3030
- name: Check out code into the Go module directory
31-
uses: actions/checkout@v7
31+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
3232
with:
3333
fetch-depth: 0
3434

3535
- name: Set up Go
36-
uses: actions/setup-go@v6
36+
uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6.5.0
3737
with:
38-
go-version: 1.26.4
38+
go-version: 1.27.0
3939
id: go
4040

4141
- name: Set up Java
42-
uses: actions/setup-java@v5
42+
uses: actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961 # v5.7.0
4343
with:
4444
distribution: 'temurin'
4545
java-version: ${{ matrix.java }}
@@ -71,7 +71,7 @@ jobs:
7171
echo "go-build=$(go env GOCACHE)" >> $GITHUB_OUTPUT
7272
echo "go-mod=$(go env GOMODCACHE)" >> $GITHUB_OUTPUT
7373
74-
- uses: actions/cache@v6
74+
- uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
7575
with:
7676
path: |
7777
${{ steps.go-cache-paths.outputs.go-build }}

.github/workflows/linters-checks.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ jobs:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- name: Set up Go
18-
uses: actions/setup-go@v6
18+
uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6.5.0
1919
with:
20-
go-version: 1.26.4
20+
go-version: 1.27.0
2121
id: go
2222

2323
- name: Check out code into the Go module directory
24-
uses: actions/checkout@v7
24+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
2525
with:
2626
fetch-depth: 0
2727

.github/workflows/unit-tests-darwin.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ jobs:
1616
steps:
1717

1818
- name: Check out code into the Go module directory
19-
uses: actions/checkout@v7
19+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
2020
with:
2121
fetch-depth: 0
2222

2323
- name: Set up Go
24-
uses: actions/setup-go@v6
24+
uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6.5.0
2525
with:
26-
go-version: 1.26.4
26+
go-version: 1.27.0
2727
id: go
2828

2929
# Retrieve build locations with `go env`
@@ -33,7 +33,7 @@ jobs:
3333
echo "go-build=$(go env GOCACHE)" >> $GITHUB_OUTPUT
3434
echo "go-mod=$(go env GOMODCACHE)" >> $GITHUB_OUTPUT
3535
36-
- uses: actions/cache@v6
36+
- uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
3737
with:
3838
path: |
3939
${{ steps.go-cache-paths.outputs.go-build }}

.github/workflows/unit-tests-linux.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ jobs:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- name: Set up Go
18-
uses: actions/setup-go@v6
18+
uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6.5.0
1919
with:
20-
go-version: 1.26.4
20+
go-version: 1.27.0
2121
id: go
2222

2323
- name: Check out code into the Go module directory
24-
uses: actions/checkout@v7
24+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
2525
with:
2626
fetch-depth: 0
2727

.github/workflows/unit-tests-windows.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@ jobs:
1717
steps:
1818

1919
- name: Check out code into the Go module directory
20-
uses: actions/checkout@v7
20+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
2121
with:
2222
fetch-depth: 0
2323

2424
- name: Set up Go
25-
uses: actions/setup-go@v6
25+
uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6.5.0
2626
with:
27-
go-version: 1.26.4
27+
go-version: 1.27.0
2828
id: go
2929

3030
# Retrieve build locations with `go env`
@@ -35,7 +35,7 @@ jobs:
3535
echo "go-mod=$(go env GOMODCACHE)" >> $GITHUB_OUTPUT
3636
shell: bash
3737

38-
- uses: actions/cache@v6
38+
- uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
3939
with:
4040
path: |
4141
${{ steps.go-cache-paths.outputs.go-build }}

.github/workflows/verify-examples.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ jobs:
1616

1717
steps:
1818
- name: Check out code
19-
uses: actions/checkout@v7
19+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
2020
with:
2121
fetch-depth: 0
2222

2323
- name: Set up Go
24-
uses: actions/setup-go@v6
24+
uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6.5.0
2525
with:
26-
go-version: 1.26.4
26+
go-version: 1.27.0
2727
id: go
2828

2929
# Skip changes not affecting examples or integration/examples

cmd/skaffold/app/cmd/flags.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -803,7 +803,7 @@ func methodNameByType(v reflect.Value) string {
803803
return "StringSliceVar"
804804
case reflect.Struct:
805805
return "Var"
806-
case reflect.Ptr:
806+
case reflect.Pointer:
807807
return methodNameByType(reflect.Indirect(v))
808808
}
809809
return ""

deploy/skaffold/Dockerfile.deps

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ ARG ARCH=amd64
1717

1818
FROM ${BASE_PREFIX}docker:28.1.1 as docker-source
1919
FROM docker/buildx-bin:0.23.0 as buildx-source
20-
FROM ${BASE_PREFIX}golang:1.26.4 as golang-source
20+
FROM ${BASE_PREFIX}golang:1.27.0 as golang-source
2121

2222
# Download kubectl
2323
FROM ${BASE_PREFIX}alpine:3.21.2 as download-kubectl

go.mod

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

3-
go 1.26.4
3+
go 1.27.0
44

55
// broken on Windows, see https://github.com/karrick/godirwalk/issues/70
66
exclude github.com/karrick/godirwalk v1.17.0

hack/boilerplate.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ set -e
1818
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
1919
BOILERPLATEDIR=$DIR/boilerplate
2020

21-
files=$(python ${BOILERPLATEDIR}/boilerplate.py --rootdir . --boilerplate-dir ${BOILERPLATEDIR})
21+
PYTHON=$(command -v python3 || command -v python)
22+
files=$($PYTHON ${BOILERPLATEDIR}/boilerplate.py --rootdir . --boilerplate-dir ${BOILERPLATEDIR})
2223

2324
if [[ ! -z ${files} ]]; then
2425
echo "Boilerplate missing in:"

0 commit comments

Comments
 (0)