Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 13d42f0

Browse files
changing go1.20.14 over to go1.21.13
1 parent 09f0b7c commit 13d42f0

File tree

6 files changed

+16
-13
lines changed

6 files changed

+16
-13
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ concurrency:
1515
cancel-in-progress: true
1616

1717
env:
18-
GO_VERSION: 1.20.14
18+
GO_VERSION: 1.21.13
1919
NODE_VERSION: 18
2020
GOLANGCI_VERSION: v1.53.3
2121
SOURCE_MAP_SUPPORT: true

.github/workflows/measure-size.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Measure canonical app size
33
on: ['pull_request']
44

55
env:
6-
GO_VERSION: '~1.20.14'
6+
GO_VERSION: '~1.21.13'
77

88
jobs:
99
measure:

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,21 +33,21 @@ Nearly everything, including Goroutines ([compatibility documentation](https://g
3333

3434
### Installation and Usage
3535

36-
GopherJS [requires Go 1.20 or newer](https://github.com/gopherjs/gopherjs/blob/master/doc/compatibility.md#go-version-compatibility). If you need an older Go
36+
GopherJS [requires Go 1.21 or newer](https://github.com/gopherjs/gopherjs/blob/master/doc/compatibility.md#go-version-compatibility). If you need an older Go
3737
version, you can use an [older GopherJS release](https://github.com/gopherjs/gopherjs/releases).
3838

3939
Install GopherJS with `go install`:
4040

4141
```
42-
go install github.com/gopherjs/gopherjs@v1.20.0-beta1 # Or replace 'v1.20.0-beta1' with another version.
42+
go install github.com/gopherjs/gopherjs@v1.21.0-beta1 # Or replace 'v1.21.0-beta1' with another version.
4343
```
4444

45-
If your local Go distribution as reported by `go version` is newer than Go 1.20, then you need to set the `GOPHERJS_GOROOT` environment variable to a directory that contains a Go 1.20 distribution. For example:
45+
If your local Go distribution as reported by `go version` is newer than Go 1.21, then you need to set the `GOPHERJS_GOROOT` environment variable to a directory that contains a Go 1.21 distribution. For example:
4646

4747
```
48-
go install golang.org/dl/go1.20.14@latest
49-
go1.20.14 download
50-
export GOPHERJS_GOROOT="$(go1.20.14 env GOROOT)" # Also add this line to your .profile or equivalent.
48+
go install golang.org/dl/go1.21.13@latest
49+
go1.21.13 download
50+
export GOPHERJS_GOROOT="$(go1.21.13 env GOROOT)" # Also add this line to your .profile or equivalent.
5151
```
5252

5353
Now you can use `gopherjs build [package]`, `gopherjs build [files]` or `gopherjs install [package]` which behave similar to the `go` tool. For `main` packages, these commands create a `.js` file and `.js.map` source map in the current directory or in `$GOPATH/bin`. The generated JavaScript file can be used as usual in a website. Use `gopherjs help [command]` to get a list of possible command line flags, e.g. for minification and automatically watching for changes.

compiler/version_check.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//go:build go1.20
1+
//go:build go1.21
22

33
package compiler
44

@@ -12,10 +12,10 @@ import (
1212
)
1313

1414
// Version is the GopherJS compiler version string.
15-
const Version = "1.20.0-beta1+go1.20.14"
15+
const Version = "1.21.0-beta1+go1.21.13"
1616

1717
// GoVersion is the current Go 1.x version that GopherJS is compatible with.
18-
const GoVersion = 20
18+
const GoVersion = 21
1919

2020
// CheckGoVersion checks the version of the Go distribution
2121
// at goroot, and reports an error if it's not compatible
@@ -49,7 +49,7 @@ func goRootVersion(goroot string) (string, error) {
4949
if err != nil {
5050
return "", fmt.Errorf("`go version` command failed: %w", err)
5151
}
52-
// Expected output: go version go1.20.14 linux/amd64
52+
// Expected output: go version go1.21.13 linux/amd64
5353
parts := strings.Split(string(out), " ")
5454
if len(parts) != 4 {
5555
return "", fmt.Errorf("unexpected `go version` output %q, expected 4 words", string(out))

go.mod

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

3-
go 1.20
3+
go 1.21
44

55
require (
66
github.com/evanw/esbuild v0.25.4

tests/gorepo/run.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,9 @@ var knownFails = map[string]failReason{
153153
"fixedbugs/issue57823.go": {category: notApplicable, desc: "uses runtime.SetFinalizer() and runtime.GC()."},
154154
"fixedbugs/issue59293.go": {category: usesUnsupportedPackage, desc: "uses unsafe.SliceData() and unsafe.StringData()."},
155155
"fixedbugs/issue43942.go": {category: other, desc: "https://github.com/gopherjs/gopherjs/issues/1126"},
156+
157+
// These are new tests in Go 1.21
158+
// TODO(grantnelson-wf): Fill out
156159
}
157160

158161
type failCategory uint8

0 commit comments

Comments
 (0)