Skip to content

Commit e47c211

Browse files
Update Go 1.27.0
1 parent c465b92 commit e47c211

6 files changed

Lines changed: 11 additions & 79 deletions

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
matrix:
2424
goos: [windows, linux, darwin]
2525
goarch: [amd64, arm64]
26-
buildtarget: ['go1.26.7']
26+
buildtarget: ['go1.27.0']
2727
fail-fast: false
2828
env:
2929
GOOS: ${{ matrix.goos }}
@@ -48,11 +48,11 @@ jobs:
4848
with:
4949
path: 'patch'
5050

51-
# Patches for Go 1.26.x before more minor changes introduces.
51+
# Patches for Go 1.27.x before more minor changes introduces.
5252
- name: Apply patch
5353
run: |
5454
cd ./go
55-
patch --verbose -p 1 < ../patch/go-1-26.diff
55+
patch --verbose -p 1 < ../patch/go-1-27.diff
5656
cd ..
5757
5858
- name: Set-up Go
@@ -129,71 +129,3 @@ jobs:
129129
file: ./go/go-for-win7-${{ env.ASSET_NAME }}.zip*
130130
tag: ${{ github.ref }}
131131
file_glob: true
132-
133-
legacy:
134-
runs-on: ubuntu-latest
135-
permissions:
136-
contents: write
137-
strategy:
138-
matrix:
139-
buildtarget: ['go1.26.7']
140-
fail-fast: false
141-
steps:
142-
- name: Download source
143-
uses: actions/checkout@v7
144-
with:
145-
repository: 'golang/go'
146-
ref: ${{ matrix.buildtarget }}
147-
path: 'go'
148-
149-
- name: Download patch
150-
uses: actions/checkout@v7
151-
with:
152-
path: 'patch'
153-
154-
- name: Apply patch
155-
run: |
156-
cd ./go
157-
patch --verbose -p 1 < ../patch/go-1-26.diff
158-
patch --verbose -p 1 < ../patch/legacy-1-26.diff
159-
cd ..
160-
161-
- name: Copy License
162-
run: |
163-
cp -f ./patch/LICENSE ./go/
164-
165-
- name: Upload package to Artifacts
166-
uses: actions/upload-artifact@v7
167-
with:
168-
name: source-legacy
169-
path: |
170-
./go/*
171-
172-
- name: create ZIP archive
173-
if: github.event_name == 'release'
174-
shell: bash
175-
run: |
176-
cd ./go/
177-
zip -9vr ./source-legacy.zip . -x "./.*" "./.*/*" "./**/.*" "./**/.*/*" "./**/*_test.go"
178-
cd ..
179-
180-
- name: Compute hashes for file
181-
if: github.event_name == 'release'
182-
run: |
183-
cd ./go/
184-
FILE=./source-legacy.zip
185-
DGST=$FILE.dgst
186-
for METHOD in {"md5","sha1","sha256","sha512"}
187-
do
188-
openssl dgst -$METHOD $FILE | sed 's/([^)]*)//g' >>$DGST
189-
done
190-
cd ../
191-
192-
- name: Upload packages to release
193-
uses: svenstaro/upload-release-action@v2
194-
if: github.event_name == 'release'
195-
with:
196-
repo_token: ${{ secrets.GITHUB_TOKEN }}
197-
file: ./go/source-legacy.zip*
198-
tag: ${{ github.ref }}
199-
file_glob: true

.github/workflows/test-go1_25.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ name: Build patched Go 1.25 for tests
22

33
on:
44
workflow_dispatch:
5-
schedule:
6-
- cron: '10 0 * * 6'
5+
#schedule:
6+
#- cron: '0 0 * * 6'
77
push:
88
branches:
99
- build

.github/workflows/test-go1_26.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Build patched Go 1.26 for tests
33
on:
44
workflow_dispatch:
55
schedule:
6-
- cron: '20 0 * * 6'
6+
- cron: '10 0 * * 6'
77
push:
88
branches:
99
- build

.github/workflows/test-go1_27.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Build patched Go 1.27 for tests
33
on:
44
workflow_dispatch:
55
schedule:
6-
- cron: '30 0 * * 6'
6+
- cron: '20 0 * * 6'
77
push:
88
branches:
99
- build

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Detailed ReadMe / 详细说明文件:
3434

3535
## Supported version
3636

37-
Current support status: 1.26.x (main), 1.25.x (check)
37+
Current support status: 1.27.x (main), 1.26.x (check)
3838

3939
Possible final target: 1.30.x
4040

go-1-27.diff

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ index 395a1503d49442..01159eefea3121 100644
180180

181181
package os
182182

183-
@@ -140,3 +140,27 @@ func removeAll(path string) error {
183+
@@ -146,3 +146,27 @@ func removeAll(path string) error {
184184
}
185185
return err
186186
}
@@ -220,7 +220,7 @@ index 228b580db41be9..ecdf264f28d7d6 100644
220220
"time"
221221
)
222222

223-
@@ -186,30 +185,6 @@ func rootRemove(r *Root, name string) error {
223+
@@ -191,30 +191,6 @@ func rootRemove(r *Root, name string) error {
224224
return nil
225225
}
226226

@@ -255,7 +255,7 @@ diff --git a/src/os/root_openat.go b/src/os/root_openat.go
255255
index d7c9334ac1919c..87d39a16f1b672 100644
256256
--- a/src/os/root_openat.go
257257
+++ b/src/os/root_openat.go
258-
@@ -206,28 +206,6 @@ func rootRemove(r *Root, name string) error {
258+
@@ -217,28 +217,6 @@ func rootRemove(r *Root, name string) error {
259259
return nil
260260
}
261261

0 commit comments

Comments
 (0)