1. 13 Dec, 2016 6 commits
    • Daniel Theophanes's avatar
      os: must fixup path when 248 bytes long · b00b214e
      Daniel Theophanes authored
      Fixes #18283
      
      Change-Id: Ic044d2d0657579e8e7786d7264fda2037ddc5ffb
      Reviewed-on: https://go-review.googlesource.com/34280
      Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
      b00b214e
    • Tilman Dilo's avatar
      cmd/vet: fix panic and handling of XML in struct field tag check · 1657d76d
      Tilman Dilo authored
      The check for duplicate struct field tags introduced in CL 16704
      triggers a panic when an anonymous struct field with a duplicate name
      is encountered. For such a field, the names slice of the ast.Field is
      nil but accessed regardless to generate the warning message.
      
      Additionally, the check produces false positives for XML tags in some
      cases:
      
      - When fields are encoded as XML attributes, a warning is produced when
        an attribute reuses a name previously used for an element.
      
        Example:
          type Foo struct {
              First int `xml:"a"`
              NoDup int `xml:"a,attr"` // warning about reuse of "a"
          }
      
      - When XMLName is used to set the name of the enclosing struct element,
        it is treated as a regular struct field.
      
        Example:
          type Bar struct {
              XMLName xml.Name `xml:"a"`
              NoDup   int      `xml:"a"` // warning about reuse of "a"
          }
      
      This commit addresses all three issues. The panic is avoided by using
      the type name instead of the field name for anonymous struct fields when
      generating the warning message. An additional namespace for checking XML
      attribute names separately from element names is introduced. Lastly,
      fields named XMLName are excluded from the check for duplicate tags.
      
      Updates #18256
      
      Change-Id: Ida48ea8584b56bd4d12ae3ebd588a66ced2594cc
      Reviewed-on: https://go-review.googlesource.com/34070
      Run-TryBot: Rob Pike <r@golang.org>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      Reviewed-by: 's avatarRob Pike <r@golang.org>
      1657d76d
    • Ian Lance Taylor's avatar
      os/exec: fix race in TestStdinCloseRace · c06b10ae
      Ian Lance Taylor authored
      The test for the race detector itself had a race of a sort not
      detected by the race detector.
      
      Fixes #18286.
      
      Change-Id: I3265eae275aaa2869a6b6d3e8675b0d88b25831b
      Reviewed-on: https://go-review.googlesource.com/34287Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
      c06b10ae
    • Brad Fitzpatrick's avatar
      net/http: update some comments · d986daec
      Brad Fitzpatrick authored
      And move some code to make control flow more obvious.
      No functional change.
      
      Change-Id: Iefaa96f664070ab2accade1857e1946e56df6902
      Reviewed-on: https://go-review.googlesource.com/34285
      Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
      d986daec
    • Brad Fitzpatrick's avatar
      A+C: automated update · 48a5d993
      Brad Fitzpatrick authored
      Add Alexander Menzhinsky (individual CLA)
      Add Anthony Woods (individual CLA)
      Add Chris Stockton (individual CLA)
      Add David Lazar (corporate CLA for Google Inc.)
      Add Elliot Morrison-Reed (individual CLA)
      Add Igor Bernstein (corporate CLA for Google Inc.)
      Add Jesse Szwedko (individual CLA)
      Add Jordan Lewis (individual CLA)
      Add Kaviraj Kanagaraj (individual CLA)
      Add Keegan Carruthers-Smith (individual CLA)
      Add Marcel Edmund Franke (individual CLA)
      Add Marin Bašić (individual CLA)
      Add Martin Kreichgauer (corporate CLA for Google Inc.)
      Add Max Riveiro (individual CLA)
      Add Odin Ugedal (individual CLA)
      Add Patrick Lee (individual CLA)
      Add Rebecca Stambler (corporate CLA for Google Inc.)
      Add Ryuzo Yamamoto (individual CLA)
      Add Takuya Ueda (individual CLA)
      Add Thordur Bjornsson (individual CLA)
      Add Zac Bergquist (individual CLA)
      
      Updates #12042
      
      Change-Id: Idb5ffe526b26437eb7612f0b60bde62162af5abb
      Reviewed-on: https://go-review.googlesource.com/34286Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
      48a5d993
    • Ian Lance Taylor's avatar
      cmd/go: don't assemble all .s files in a single cmd/asm run · b9ffcf96
      Ian Lance Taylor authored
      For the 1.8 release, go back to invoking the assembler once per .s
      file, to avoid the problem in #18225. When the assembler is fixed, the
      change to cmd/go/build.go can be rolled back, but the test in
      cmd/go/go_test.go should remain.
      
      Fixes #18225.
      Update #15680.
      
      Change-Id: Ibff8d0c638536efb50a2b2c280b41399332f4fe4
      Reviewed-on: https://go-review.googlesource.com/34284
      Run-TryBot: Ian Lance Taylor <iant@golang.org>
      Reviewed-by: 's avatarJosh Bleecher Snyder <josharian@gmail.com>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      b9ffcf96
  2. 12 Dec, 2016 6 commits
  3. 11 Dec, 2016 1 commit
  4. 10 Dec, 2016 2 commits
  5. 09 Dec, 2016 11 commits
  6. 08 Dec, 2016 6 commits
  7. 07 Dec, 2016 8 commits