1. 19 Sep, 2019 6 commits
    • ZYunH's avatar
      net/url: add upperhex const instead of using string literal · fe2ed505
      ZYunH authored
      The mime and strconv packages already have a const with this name & value.
      
      Change-Id: Ibd7837f854ac8ec3f57943a9d1db07f4cf6db858
      GitHub-Last-Rev: 775cdce3b75350aa3b9a6f31f04cfdd0033e9ac3
      GitHub-Pull-Request: golang/go#34389
      Reviewed-on: https://go-review.googlesource.com/c/go/+/196437Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
      fe2ed505
    • Bryan C. Mills's avatar
      cmd/go/internal/mvs: recompute build list in Reqs before minimizing · e53edafb
      Bryan C. Mills authored
      modload.MinReqs was passing modload.buildList to mvs.Reqs explicitly,
      apparently as an optimization. However, we do not always have the
      invariant that modload.buildList is complete: in particular, 'go mod
      tidy' begins by reducing modload.buildList to only the set of modules
      that provide packages to the build, which may be substantially smaller
      than the final build list.
      
      Other operations, such as 'go mod graph', do not load the entire
      import graph, and therefore call Reqs with the unreduced build list.
      
      Since Reqs retains modules according to a post-order traversal of the
      list, an incomplete list may produce a different traversal order — and
      therefore a different minimal solution, when multiple minimal
      solutions exist. That caused 'go mod tidy' to produce different output
      from other 'go' subcommands when certain patterns of dependencies are
      present.
      
      Since passing in the build list is only an optimization anyway, remove
      the parameter and recompute the actual (complete) list at the
      beginning of mvs.Reqs itself. That way, it is guaranteed to be
      complete and in canonical order.
      
      Fixes #34086
      
      Change-Id: I3101bb81a1853c4a5e773010da3e44d2d90a570c
      Reviewed-on: https://go-review.googlesource.com/c/go/+/193397
      Run-TryBot: Bryan C. Mills <bcmills@google.com>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      Reviewed-by: default avatarJay Conrod <jayconrod@google.com>
      e53edafb
    • Tobias Klauser's avatar
      syscall: extend skip criteria for TestAmbientCapsUserns · 5d548f12
      Tobias Klauser authored
      TestAmbientCapsUserns also needs to be skipped, e.g. in case the test is
      run inside a chroot.
      
      Updates #34015
      
      Change-Id: I53913432fe9408217edfe64619adbfd911a51a7a
      Reviewed-on: https://go-review.googlesource.com/c/go/+/196500
      Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
      Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      5d548f12
    • Jason A. Donenfeld's avatar
      syscall: avoid memory corruption in mksyscall_windows.go with *bool parameters · 62fb079e
      Jason A. Donenfeld authored
      Windows type PBOOL is a pointer to a 4 byte value, where 0 means false
      and not-0 means true. That means we should use uint32 here, not bool,
      since Go bools can be 1 byte. Since a *bool is never a "real" valid
      Windows type, converting on both in and out is probably sufficient,
      since *bool shouldn't ever be used as something with significance for
      its particular address.
      
      Updates: #34364
      Change-Id: I4c1b91cd9a39d91e23dae6f894b9a49f7fba2c0a
      Reviewed-on: https://go-review.googlesource.com/c/go/+/196122
      Run-TryBot: Jason A. Donenfeld <Jason@zx2c4.com>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      Reviewed-by: default avatarAlex Brainman <alex.brainman@gmail.com>
      62fb079e
    • Gert Cuykens's avatar
      cmd/doc: add option to output a clean one-line symbol representation · fa42157d
      Gert Cuykens authored
      Currently there is no way for go doc to output a clean
      one-line symbol representation of types, functions, vars
      and consts without documentation lines or other text lines
      added.
      
      For example `go doc fmt` has a huge introduction so if you
      pass that to grep or fzf to search a symbol let say scan
      `go doc fmt | grep scan` you get way to many false
      positives.
      
      Added a `-short` flag to be able to do
      `go doc -short fmt | grep scan` instead which will result in
      just the symbols you are looking for.
      
      func Fscan(r io.Reader, a ...interface{}) (n int, err error)
      func Fscanf(r io.Reader, format string, a ...interface{}) (n int, err error)
      func Fscanln(r io.Reader, a ...interface{}) (n int, err error)
      func Sscan(str string, a ...interface{}) (n int, err error)
      func Sscanf(str string, format string, a ...interface{}) (n int, err error)
      func Sscanln(str string, a ...interface{}) (n int, err error)
      
      
      Fixes #32597
      
      Change-Id: I77a73838adc512c8d1490f5a82075de6b0462a31
      Reviewed-on: https://go-review.googlesource.com/c/go/+/184017
      Run-TryBot: Andrew Bonventre <andybons@golang.org>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      Reviewed-by: default avatarAndrew Bonventre <andybons@golang.org>
      fa42157d
    • Andrew's avatar
      doc/go1.13: add id tag to note about removal of NaCl port in Go 1.14 · b7e9c7a3
      Andrew authored
      This was in response to a post-merge review comment in
      golang.org/cl/185537
      
      Change-Id: I866b3882c8e83bf1fef60115cff5d1c6a9863f09
      Reviewed-on: https://go-review.googlesource.com/c/go/+/186319Reviewed-by: default avatarAndrew Bonventre <andybons@golang.org>
      b7e9c7a3
  2. 18 Sep, 2019 24 commits
  3. 17 Sep, 2019 10 commits