Skip to content

Commit 728bebb

Browse files
committed
fix #3802: update go 1.20.12 => 1.22.4
1 parent ac54f06 commit 728bebb

File tree

4 files changed

+28
-6
lines changed

4 files changed

+28
-6
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- name: Set up Go 1.x
2121
uses: actions/setup-go@v3
2222
with:
23-
go-version: 1.20.12
23+
go-version: 1.22.4
2424
id: go
2525

2626
- name: Setup Node.js environment
@@ -50,7 +50,7 @@ jobs:
5050
- name: Set up Go 1.x
5151
uses: actions/setup-go@v3
5252
with:
53-
go-version: 1.20.12
53+
go-version: 1.22.4
5454
id: go
5555

5656
- name: Setup Node.js environment
@@ -81,7 +81,7 @@ jobs:
8181
- name: Set up Go 1.x
8282
uses: actions/setup-go@v3
8383
with:
84-
go-version: 1.20.12
84+
go-version: 1.22.4
8585
id: go
8686

8787
- name: Setup Node.js environment
@@ -273,7 +273,7 @@ jobs:
273273
- name: Set up Go 1.x
274274
uses: actions/setup-go@v3
275275
with:
276-
go-version: 1.20.12
276+
go-version: 1.22.4
277277
id: go
278278

279279
# Make sure esbuild works with old versions of Deno. Note: It's important

.github/workflows/validate.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- name: Set up Go 1.x
1919
uses: actions/setup-go@v3
2020
with:
21-
go-version: 1.20.12
21+
go-version: 1.22.4
2222
id: go
2323

2424
- name: Validation checks

CHANGELOG.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,27 @@
11
# Changelog
22

3+
## Unreleased
4+
5+
* Drop support for older versions of Windows ([#3802](https://github.com/evanw/esbuild/issues/3802))
6+
7+
This release drops support for the following operating systems:
8+
9+
* Windows 7
10+
* Windows 8
11+
* Windows Server 2008
12+
* Windows Server 2012
13+
14+
This is because the Go programming language dropped support for these operating system versions in [Go 1.21](https://go.dev/doc/go1.21#windows), and this release updates esbuild from Go 1.20 to Go 1.22.
15+
16+
Note that this only affects the binary esbuild executables that are published to the `esbuild` npm package. It's still possible to compile esbuild's source code for these older operating systems. If you need to, you can compile esbuild for yourself using an older version of the Go compiler (before Go version 1.21). That might look something like this:
17+
18+
```
19+
git clone https://github.com/evanw/esbuild.git
20+
cd esbuild
21+
go build ./cmd/esbuild
22+
./esbuild.exe --version
23+
```
24+
325
## 0.21.5
426
527
* Fix `Symbol.metadata` on classes without a class decorator ([#3781](https://github.com/evanw/esbuild/issues/3781))

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ test-all:
2020
@$(MAKE) --no-print-directory -j6 test-common test-deno ts-type-tests test-wasm-node test-wasm-browser lib-typecheck test-yarnpnp
2121

2222
check-go-version:
23-
@go version | grep ' go1\.20\.12 ' || (echo 'Please install Go version 1.20.12' && false)
23+
@go version | grep ' go1\.22\.4 ' || (echo 'Please install Go version 1.22.4' && false)
2424

2525
# Note: Don't add "-race" here by default. The Go race detector is currently
2626
# only supported on the following configurations:

0 commit comments

Comments
 (0)