Skip to content

Commit e701551

Browse files
committed
add update-go-mod-replace
1 parent 7242f27 commit e701551

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

.github/workflows/build-debug.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- name: Setup Go
2424
uses: actions/setup-go@v5
2525
with:
26-
go-version: "1.20"
26+
go-version: "1.22"
2727

2828
- uses: actions/cache@v4
2929
with:

.github/workflows/build-release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
- name: Setup Go
2929
uses: actions/setup-go@v5
3030
with:
31-
go-version: "1.20"
31+
go-version: "1.22"
3232

3333
- uses: actions/cache@v4
3434
with:

.github/workflows/update-dependencies.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- name: Setup Go
2525
uses: actions/setup-go@v5
2626
with:
27-
go-version: "1.20"
27+
go-version: "1.22"
2828

2929
- uses: actions/cache@v4
3030
with:
@@ -39,14 +39,20 @@ jobs:
3939
run: |
4040
./gradlew :core:downloadGeoipDatabase
4141
42+
- name: Install update-go-mod-replace
43+
run: |
44+
go install github.com/metacubex/update-go-mod-replace@latest
45+
4246
- name: Update Foss Gomod
4347
run: |
4448
cd ${{ github.workspace }}/core/src/foss/golang/
49+
update-go-mod-replace ${{ github.workspace }}/core/src/foss/golang/clash/go.mod $(pwd)/go.mod
4550
go mod tidy
4651
4752
- name: Update Main Gomod
4853
run: |
49-
cd ${{ github.workspace }}/core/src/main/golang/native/
54+
cd ${{ github.workspace }}/core/src/main/golang/
55+
update-go-mod-replace ${{ github.workspace }}/core/src/foss/golang/clash/go.mod $(pwd)/go.mod
5056
go mod tidy
5157
5258
- uses: tibdex/github-app-token@v2

0 commit comments

Comments
 (0)