Skip to content

Commit

Permalink
update to go1.20
Browse files Browse the repository at this point in the history
* update to go1.20

* lint

* fix: ci

---------

Co-authored-by: Fernandez Ludovic <ldez@users.noreply.github.com>
  • Loading branch information
mvertes and ldez authored Feb 3, 2023
1 parent 1679870 commit 0e3ea57
Show file tree
Hide file tree
Showing 512 changed files with 7,253 additions and 1,802 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/go-cross.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:

strategy:
matrix:
go-version: [ 1.18, 1.19 ]
go-version: [ 1.19, '1.20' ]
os: [ubuntu-latest, macos-latest, windows-latest]

include:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
pull_request:

env:
GO_VERSION: 1.18
GO_VERSION: 1.19
GOLANGCI_LINT_VERSION: v1.47.1

jobs:
Expand Down Expand Up @@ -45,7 +45,7 @@ jobs:
needs: linting
strategy:
matrix:
go-version: [ 1.18, 1.19 ]
go-version: [ 1.19, '1.20' ]
steps:
- name: Set up Go ${{ matrix.go-version }}
uses: actions/setup-go@v2
Expand Down Expand Up @@ -76,7 +76,7 @@ jobs:
working-directory: ${{ github.workspace }}/go/src/github.com/traefik/yaegi
strategy:
matrix:
go-version: [ 1.18, 1.19 ]
go-version: [ 1.19, '1.20' ]

steps:
- name: Set up Go ${{ matrix.go-version }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- v[0-9]+.[0-9]+*

env:
GO_VERSION: 1.19
GO_VERSION: '1.20'

jobs:

Expand Down
2 changes: 1 addition & 1 deletion extract/extract.go
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ func GetMinor(part string) string {
return minor
}

const defaultMinorVersion = 19
const defaultMinorVersion = 20

func genBuildTags() (string, error) {
version := runtime.Version()
Expand Down
4 changes: 2 additions & 2 deletions interp/interp_consistent_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ func TestInterpErrorConsistency(t *testing.T) {
{
fileName: "const9.go",
expectedInterp: "5:2: constant definition loop",
expectedExec: "5:2: initialization loop for b",
expectedExec: "5:2: initialization",
},
{
fileName: "if2.go",
Expand Down Expand Up @@ -247,7 +247,7 @@ func TestInterpErrorConsistency(t *testing.T) {
{
fileName: "issue-1093.go",
expectedInterp: "9:6: cannot use type untyped string as type int in assignment",
expectedExec: `9:6: cannot use "a" + b() (value of type string) as type int in assignment`,
expectedExec: `9:6: cannot use "a" + b() (value of type string)`,
},
{
fileName: "op1.go",
Expand Down
4 changes: 2 additions & 2 deletions interp/interp_eval_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -545,8 +545,8 @@ func TestEvalSliceExpression(t *testing.T) {
{src: `a := (&[]int{0,1,2,3})[1:3]`, err: "1:33: cannot slice type *[]int"},
{src: `a := "hello"[1:3:4]`, err: "1:45: invalid operation: 3-index slice of string"},
{src: `ar := [3]int{0,1,2}; a := ar[:4]`, err: "1:58: index int is out of bounds"},
{src: `a := []int{0,1,2,3}[1::4]`, err: "1:49: 2nd index required in 3-index slice"},
{src: `a := []int{0,1,2,3}[1:3:]`, err: "1:51: 3rd index required in 3-index slice"},
{src: `a := []int{0,1,2,3}[1::4]`, err: "index required in 3-index slice"},
{src: `a := []int{0,1,2,3}[1:3:]`, err: "index required in 3-index slice"},
{src: `a := []int{0,1,2}[3:1]`, err: "invalid index values, must be low <= high <= max"},
{pre: func() { eval(t, i, `type Str = string; var r Str = "truc"`) }, src: `r[1]`, res: "114"},
{src: `_[12]`, err: "1:28: cannot use _ as value"},
Expand Down
31 changes: 0 additions & 31 deletions stdlib/go1_18_crypto_ed25519.go

This file was deleted.

36 changes: 0 additions & 36 deletions stdlib/go1_18_net_netip.go

This file was deleted.

4 changes: 2 additions & 2 deletions stdlib/go1_19_archive_tar.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions stdlib/go1_19_archive_zip.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions stdlib/go1_19_bufio.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions stdlib/go1_19_bytes.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions stdlib/go1_19_compress_bzip2.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions stdlib/go1_19_compress_flate.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions stdlib/go1_19_compress_gzip.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions stdlib/go1_19_compress_lzw.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions stdlib/go1_19_compress_zlib.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions stdlib/go1_19_container_heap.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions stdlib/go1_19_container_list.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions stdlib/go1_19_container_ring.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions stdlib/go1_19_context.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions stdlib/go1_19_crypto.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions stdlib/go1_19_crypto_aes.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions stdlib/go1_19_crypto_cipher.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions stdlib/go1_19_crypto_des.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions stdlib/go1_19_crypto_dsa.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions stdlib/go1_19_crypto_ecdsa.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions stdlib/go1_19_crypto_ed25519.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions stdlib/go1_19_crypto_elliptic.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions stdlib/go1_19_crypto_hmac.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions stdlib/go1_19_crypto_md5.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions stdlib/go1_19_crypto_rand.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 0e3ea57

Please sign in to comment.