Skip to content

Commit

Permalink
feat: update stdlib mapping for go1.16
Browse files Browse the repository at this point in the history
- drop stdlib for go1.14
- generate stdlib for go1.16
-  update CI configuration.
  • Loading branch information
ldez authored Feb 17, 2021
1 parent ac80d1b commit 8bb5daf
Show file tree
Hide file tree
Showing 487 changed files with 6,037 additions and 3,524 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.14, 1.15 ]
go-version: [ 1.15, 1.16 ]
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.15
GO_VERSION: 1.16
GOLANGCI_LINT_VERSION: v1.36.0

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

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.15
GO_VERSION: 1.16

jobs:

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

const defaultMinorVersion = 15
const defaultMinorVersion = 16

func genBuildTags() (string, error) {
version := runtime.Version()
Expand Down
3 changes: 1 addition & 2 deletions interp/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,9 @@ var knownOs = map[string]bool{
"dragonfly": true,
"freebsd": true,
"illumos": true,
"ios": true,
"js": true,
"linux": true,
"nacl": true,
"netbsd": true,
"openbsd": true,
"plan9": true,
Expand All @@ -176,7 +176,6 @@ var knownOs = map[string]bool{
var knownArch = map[string]bool{
"386": true,
"amd64": true,
"amd64p32": true,
"arm": true,
"arm64": true,
"mips": true,
Expand Down
74 changes: 0 additions & 74 deletions stdlib/go1_14_debug_pe.go

This file was deleted.

156 changes: 0 additions & 156 deletions stdlib/go1_14_os.go

This file was deleted.

21 changes: 0 additions & 21 deletions stdlib/go1_14_os_signal.go

This file was deleted.

2 changes: 1 addition & 1 deletion stdlib/go1_15_archive_tar.go

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

2 changes: 1 addition & 1 deletion stdlib/go1_15_archive_zip.go

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

2 changes: 1 addition & 1 deletion stdlib/go1_15_bufio.go

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

2 changes: 1 addition & 1 deletion stdlib/go1_15_bytes.go

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

2 changes: 1 addition & 1 deletion stdlib/go1_15_compress_bzip2.go

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

2 changes: 1 addition & 1 deletion stdlib/go1_15_compress_flate.go

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

2 changes: 1 addition & 1 deletion stdlib/go1_15_compress_gzip.go

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

2 changes: 1 addition & 1 deletion stdlib/go1_15_compress_lzw.go

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

2 changes: 1 addition & 1 deletion stdlib/go1_15_compress_zlib.go

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

Loading

0 comments on commit 8bb5daf

Please sign in to comment.