Skip to content

Commit

Permalink
internal/imports: update stdlib index for 1.16
Browse files Browse the repository at this point in the history
    $ go run mkstdlib.go

Updates golang/go#38706.

Change-Id: I9d5bce3083d2a57eea2ea89c6a99a410ed169f05
Reviewed-on: https://go-review.googlesource.com/c/tools/+/293839
Run-TryBot: Akhil Indurti <aindurti@gmail.com>
Run-TryBot: Heschi Kreinick <heschi@google.com>
Reviewed-by: Heschi Kreinick <heschi@google.com>
Trust: Heschi Kreinick <heschi@google.com>
Trust: Hyang-Ah Hana Kim <hyangah@gmail.com>
gopls-CI: kokoro <noreply+kokoro@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
  • Loading branch information
smasher164 authored and heschi committed Feb 19, 2021
1 parent f3748ed commit f4301d9
Show file tree
Hide file tree
Showing 2 changed files with 220 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/imports/mkstdlib.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import (
"bytes"
"fmt"
"go/format"
exec "golang.org/x/sys/execabs"
"io"
"io/ioutil"
"log"
Expand All @@ -23,6 +22,8 @@ import (
"regexp"
"runtime"
"sort"

exec "golang.org/x/sys/execabs"
)

func mustOpen(name string) io.Reader {
Expand Down Expand Up @@ -66,6 +67,7 @@ func main() {
mustOpen(api("go1.13.txt")),
mustOpen(api("go1.14.txt")),
mustOpen(api("go1.15.txt")),
mustOpen(api("go1.16.txt")),

// The API of the syscall/js package needs to be computed explicitly,
// because it's not included in the GOROOT/api/go1.*.txt files at this time.
Expand Down
Loading

0 comments on commit f4301d9

Please sign in to comment.