Skip to content

Commit c1b617f

Browse files
dncrewsklesh
andauthored
chore: upgrade go to 1.26 (#8875)
* chore: upgrade go to 1.26 * ci: update github action versions * refactor: replace deprecated go APIs --------- Co-authored-by: Klesh Wong <klesh@qq.com>
1 parent 7e9a2ae commit c1b617f

32 files changed

Lines changed: 364 additions & 372 deletions

.devcontainer/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 mcr.microsoft.com/devcontainers/go:1-1.23-bookworm
16+
FROM mcr.microsoft.com/devcontainers/go:1-1.26-bookworm
1717

1818
ENV PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib:/usr/local/lib/pkgconfig
1919
ENV LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib

.github/workflows/NOTICE-year-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@ jobs:
2222
notice-year-check:
2323
runs-on: ubuntu-latest
2424
steps:
25-
- uses: actions/checkout@v3
25+
- uses: actions/checkout@v6
2626
- name: check the NOTICE file
2727
run: grep $(date +"%Y") NOTICE

.github/workflows/asf-header-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
runs-on: ubuntu-24.04
2828
steps:
2929
- name: Checkout repository
30-
uses: actions/checkout@v2
30+
uses: actions/checkout@v6
3131

3232
- name: Check License Header
3333
uses: apache/skywalking-eyes@main

.github/workflows/auto-cherry-pick.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
if: github.event.pull_request.merged == true
2929
runs-on: ubuntu-latest
3030
steps:
31-
- uses: actions/checkout@v3
31+
- uses: actions/checkout@v6
3232
with:
3333
fetch-depth: 0
3434
- name: Auto Cherry Pick

.github/workflows/build-builder.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
name: Build lake-builder image
2626
runs-on: ubuntu-20.04
2727
steps:
28-
- uses: actions/checkout@v2
28+
- uses: actions/checkout@v6
2929
- uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
3030
with:
3131
username: ${{ secrets.DOCKER_REGISTRY_USERNAME }}

.github/workflows/build.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
sudo rm -rf /opt/hostedtoolcache/CodeQL
4242
docker system prune -af
4343
docker volume prune -f
44-
- uses: actions/checkout@v3
44+
- uses: actions/checkout@v6
4545
- name: Set up QEMU
4646
uses: docker/setup-qemu-action@ce360397dd3f832beb865e1373c09c0e9f86d70a # v4.0.0
4747
- name: Set up Docker Buildx
@@ -73,7 +73,7 @@ jobs:
7373
sudo rm -rf /opt/hostedtoolcache/CodeQL
7474
docker system prune -af
7575
docker volume prune -f
76-
- uses: actions/checkout@v3
76+
- uses: actions/checkout@v6
7777
- name: Set up QEMU
7878
uses: docker/setup-qemu-action@ce360397dd3f832beb865e1373c09c0e9f86d70a # v4.0.0
7979
- name: Set up Docker Buildx
@@ -109,7 +109,7 @@ jobs:
109109
sudo rm -rf /opt/hostedtoolcache/CodeQL
110110
docker system prune -af
111111
docker volume prune -f
112-
- uses: actions/checkout@v3
112+
- uses: actions/checkout@v6
113113
- name: Get short sha
114114
id: get_short_sha
115115
run: echo "SHORT_SHA=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
@@ -122,7 +122,7 @@ jobs:
122122
with:
123123
username: ${{ env.DOCKERHUB_USERNAME }}
124124
password: ${{ env.DOCKERHUB_TOKEN }}
125-
- uses: actions/cache@v3
125+
- uses: actions/cache@v5
126126
with:
127127
path: /tmp/devlake-build-cache-${{ matrix.platform }}
128128
key: buildx-devlake-build-cache-${{ github.run_id }}-${{ matrix.platform }}
@@ -161,7 +161,7 @@ jobs:
161161
sudo rm -rf /opt/hostedtoolcache/CodeQL
162162
docker system prune -af
163163
docker volume prune -f
164-
- uses: actions/checkout@v3
164+
- uses: actions/checkout@v6
165165
- name: Get short sha
166166
id: get_short_sha
167167
run: echo "SHORT_SHA=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
@@ -174,11 +174,11 @@ jobs:
174174
with:
175175
username: ${{ env.DOCKERHUB_USERNAME }}
176176
password: ${{ env.DOCKERHUB_TOKEN }}
177-
- uses: actions/cache@v3
177+
- uses: actions/cache@v5
178178
with:
179179
path: /tmp/devlake-build-cache-amd64
180180
key: buildx-devlake-build-cache-${{ github.run_id }}-amd64
181-
- uses: actions/cache@v3
181+
- uses: actions/cache@v5
182182
with:
183183
path: /tmp/devlake-build-cache-arm64
184184
key: buildx-devlake-build-cache-${{ github.run_id }}-arm64
@@ -209,7 +209,7 @@ jobs:
209209
TAG=${{ github.ref_name }}
210210
SHA=${{ steps.get_short_sha.outputs.SHORT_SHA }}
211211
- name: Clear cache
212-
uses: actions/github-script@v6
212+
uses: actions/github-script@v9
213213
if: always()
214214
with:
215215
script: |
@@ -248,7 +248,7 @@ jobs:
248248
sudo rm -rf /opt/hostedtoolcache/CodeQL
249249
docker system prune -af
250250
docker volume prune -f
251-
- uses: actions/checkout@v3
251+
- uses: actions/checkout@v6
252252
- name: Get short sha
253253
id: get_short_sha
254254
run: echo "SHORT_SHA=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT

.github/workflows/codespell.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,6 @@ jobs:
3434

3535
steps:
3636
- name: Checkout
37-
uses: actions/checkout@v4
37+
uses: actions/checkout@v6
3838
- name: Codespell
3939
uses: codespell-project/actions-codespell@v2

.github/workflows/commit-msg.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ jobs:
2222
commit-msg:
2323
runs-on: ubuntu-latest
2424
steps:
25-
- uses: actions/checkout@v2
25+
- uses: actions/checkout@v6
2626
with:
2727
fetch-depth: 0
2828
- name: Cache lint-commit-message
2929
id: cache-lint-commit-message
30-
uses: actions/cache@v3
30+
uses: actions/cache@v5
3131
with:
3232
path: lint-commit-message
3333
key: ${{ runner.os }}-lint-commit-message

.github/workflows/config-ui.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ jobs:
2525
lint:
2626
runs-on: ubuntu-latest
2727
steps:
28-
- uses: actions/checkout@v2
28+
- uses: actions/checkout@v6
2929
- name: Set up Node.js
30-
uses: actions/setup-node@v3
30+
uses: actions/setup-node@v6
3131
with:
3232
node-version: '18'
3333
cache: 'yarn'

.github/workflows/golangci-lint.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ jobs:
2929
runs-on: ubuntu-latest
3030
container: mericodev/lake-builder:latest
3131
steps:
32-
- uses: actions/checkout@v3
32+
- uses: actions/checkout@v6
3333
- name: Cache golangci-lint
3434
id: cache-golangci-lint
35-
uses: actions/cache@v3
35+
uses: actions/cache@v5
3636
with:
3737
path: golangci-lint
3838
key: ${{ runner.os }}-backend-golangci-lint
@@ -42,7 +42,7 @@ jobs:
4242
cd backend
4343
make mock
4444
- name: golangci-lint
45-
uses: golangci/golangci-lint-action@v6
45+
uses: golangci/golangci-lint-action@v9
4646
with:
47-
version: v1.53.3
47+
version: v2.12.2
4848
working-directory: ./backend

0 commit comments

Comments
 (0)