1. 08 Dec, 2017 4 commits
  2. 07 Dec, 2017 13 commits
  3. 06 Dec, 2017 20 commits
  4. 05 Dec, 2017 3 commits
    • Joe Tsai's avatar
      encoding/csv: truncate carriage returns at EOF · 0b3b5113
      Joe Tsai authored
      This fixes a regression where only CRLF was folded into LF at EOF.
      Now, we also truncate trailing CR at EOF to preserve the old behavior.
      
      Every one of the test cases added exactly matches the behavior
      of Go1.9, even if the results are somewhat unexpected.
      
      Fixes #22937
      
      Change-Id: I1bc6550533163ae489ea77ec1e598163267b7eec
      Reviewed-on: https://go-review.googlesource.com/81577
      Run-TryBot: Joe Tsai <thebrokentoaster@gmail.com>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
      0b3b5113
    • Joe Tsai's avatar
      net: return io.ErrClosedPipe when possible from net.Pipe · 8f2a9267
      Joe Tsai authored
      The previous implementation of net.Pipe was just a thin wrapper around
      io.Pipe and did not wrap any of the io.Pipe errors as net.Errors.
      As a result of Hyrum's law, users have come to depend on the fact that
      net.Pipe returns io.ErrClosedPipe when the pipe is closed.
      Thus, we preserve this behavior to avoid regressing such use cases.
      
      Change-Id: I06b387877b944c1c08527601f58983872b7557b4
      Reviewed-on: https://go-review.googlesource.com/81777
      Run-TryBot: Joe Tsai <thebrokentoaster@gmail.com>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      Reviewed-by: default avatarIan Lance Taylor <iant@golang.org>
      8f2a9267
    • Russ Cox's avatar
      cmd/dist: disable test caching during run.bash · 49fec9b4
      Russ Cox authored
      Sometimes people use run.bash repeatedly
      or run go tool dist test by hand for cgo tests.
      Avoid test caching in that case, by request.
      
      Refactor code so that all go test commands
      share a common prefix.
      
      If not caching is problematic it will be a one-line
      change to turn caching back on.
      
      Fixes #22758.
      
      Change-Id: I17d721b832d97bffe26629d21f85b05dbbf2b3ec
      Reviewed-on: https://go-review.googlesource.com/80735
      Run-TryBot: Russ Cox <rsc@golang.org>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      Reviewed-by: default avatarIan Lance Taylor <iant@golang.org>
      49fec9b4