Skip to content

Commit

Permalink
Drop go1.11
Browse files Browse the repository at this point in the history
  • Loading branch information
ldez authored and traefiker committed Oct 1, 2019
1 parent 4bf4aee commit 1cf327b
Show file tree
Hide file tree
Showing 182 changed files with 6 additions and 80,572 deletions.
4 changes: 0 additions & 4 deletions .golangci.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,6 @@
max-same-issues = 0
exclude = []

[[issues.exclude-rules]]
path = "cmd/goexports/goexports.go"
text = "SA1019: importer.For is deprecated: use ForCompiler, which populates a FileSet with the positions of objects created by the importer."

[[issues.exclude-rules]]
path = "interp/.+_test\\.go"
linters = ["goconst"]
3 changes: 2 additions & 1 deletion cmd/goexports/goexports.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import (
"go/constant"
"go/format"
"go/importer"
"go/token"
"go/types"
"io/ioutil"
"log"
Expand Down Expand Up @@ -114,7 +115,7 @@ type Wrap struct {
}

func genContent(dest, pkgName, license string) ([]byte, error) {
p, err := importer.For("source", nil).Import(pkgName)
p, err := importer.ForCompiler(token.NewFileSet(), "source", nil).Import(pkgName)
if err != nil {
return nil, err
}
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module github.com/containous/yaegi

go 1.11
go 1.12
47 changes: 0 additions & 47 deletions stdlib/go1_11_archive_tar.go

This file was deleted.

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

This file was deleted.

42 changes: 0 additions & 42 deletions stdlib/go1_11_bufio.go

This file was deleted.

70 changes: 0 additions & 70 deletions stdlib/go1_11_bytes.go

This file was deleted.

20 changes: 0 additions & 20 deletions stdlib/go1_11_compress_bzip2.go

This file was deleted.

55 changes: 0 additions & 55 deletions stdlib/go1_11_compress_flate.go

This file was deleted.

31 changes: 0 additions & 31 deletions stdlib/go1_11_compress_gzip.go

This file was deleted.

23 changes: 0 additions & 23 deletions stdlib/go1_11_compress_lzw.go

This file was deleted.

Loading

0 comments on commit 1cf327b

Please sign in to comment.