1. 15 Dec, 2017 3 commits
  2. 14 Dec, 2017 19 commits
    • Robert Griesemer's avatar
      go/types: collect methods with parenthesized receiver types · 67295d6e
      Robert Griesemer authored
      The existing code simply dropped them on the floor. Don't do that.
      
      Fixes #23130.
      
      Change-Id: I10f20e41f2c466a76519983253f87af7cf6d5e70
      Reviewed-on: https://go-review.googlesource.com/83918Reviewed-by: default avatarMatthew Dempsky <mdempsky@google.com>
      67295d6e
    • Geoff Berry's avatar
      cmd/compile/internal/ssa: group dump files alphabetically · 75f0ad70
      Geoff Berry authored
      Change dump file names to group them alphabetically in directory
      listings, in pass run order.
      
      Change-Id: I8070578a5b4a3a7983dcc527ea1cfdb10a6d7d24
      Reviewed-on: https://go-review.googlesource.com/83958Reviewed-by: default avatarKeith Randall <khr@golang.org>
      Run-TryBot: Keith Randall <khr@golang.org>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      75f0ad70
    • Russ Cox's avatar
      cmd/vet: limit printf check to known Printf-like functions · 558eeb2d
      Russ Cox authored
      The name-based heuristics fail too often to be on during "go test",
      but we really want the printf vet check in "go test", so change to
      a list of exactly which standard library functions are print-like.
      
      For a later release we'd like to bring back checking for user-defined
      wrappers, but in a completely precise way. Not for Go 1.10, though.
      
      The new, more precise list includes t.Skipf, which caught some
      mistakes in standard library tests.
      
      Fixes #22936.
      
      Change-Id: I110448e3f6b75afd4327cf87b6abb4cc2021fd0d
      Reviewed-on: https://go-review.googlesource.com/83838
      Run-TryBot: Russ Cox <rsc@golang.org>
      Reviewed-by: default avatarRob Pike <r@golang.org>
      Reviewed-by: default avatarIan Lance Taylor <iant@golang.org>
      558eeb2d
    • Russ Cox's avatar
      cmd/go: vet support for upcoming cmd/vet fixes · 9006d1f8
      Russ Cox authored
      Two minor changes to allow fixes in cmd/vet's printf checking.
      
      1. Pass package import path in vet config, so that vet knows
      whether it is, for example, vetting "fmt".
      
      2. Add new, but undocumented and for now unsupported
      flag -vettool to control which vet binary is invoked during go vet.
      This lets the cmd/vet tests build and test a throwaway vet.exe
      using cmd/go to ensure type checking information, all without
      installing a potentially buggy cmd/vet.
      
      For #22936.
      
      Change-Id: I18df7c796ebc711361c847c63eb3ee17fb041ff7
      Reviewed-on: https://go-review.googlesource.com/83837
      Run-TryBot: Russ Cox <rsc@golang.org>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      Reviewed-by: default avatarIan Lance Taylor <iant@golang.org>
      9006d1f8
    • Mike Samuel's avatar
      html/template: add srcset content type · c0cda71d
      Mike Samuel authored
      Srcset is largely the same as a URL, but is escaped in URL contexts.
      Inside a srcset attribute, URLs have their commas percent-escaped to
      avoid having the URL be interpreted as multiple URLs.  Srcset is placed
      in a srcset attribute literally.
      
      Fixes #17441
      
      Change-Id: I676b544784c7e54954ddb91eeff242cab25d02c4
      Reviewed-on: https://go-review.googlesource.com/38324Reviewed-by: default avatarKunpei Sakai <namusyaka@gmail.com>
      Reviewed-by: default avatarMike Samuel <mikesamuel@gmail.com>
      Reviewed-by: default avatarRuss Cox <rsc@golang.org>
      Run-TryBot: Russ Cox <rsc@golang.org>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      c0cda71d
    • Russ Cox's avatar
      cmd/go: do not let test vet failures stop reporting of later test results · c7b7c433
      Russ Cox authored
      (This only manifested in test vet failures for packages without tests,
      or else we'd probably have seen this sooner.)
      
      Fixes #23047.
      
      Change-Id: I41d09a7780999bbe1951377ffcc811ba86ea5000
      Reviewed-on: https://go-review.googlesource.com/83955
      Run-TryBot: Russ Cox <rsc@golang.org>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      Reviewed-by: default avatarIan Lance Taylor <iant@golang.org>
      c7b7c433
    • JBD's avatar
      doc: make it clear which pprof package is used · c4da6101
      JBD authored
      Updates #22027.
      
      Change-Id: I5a5bae77a744c7a2ecb75172846e6461a98ee8af
      Reviewed-on: https://go-review.googlesource.com/83916Reviewed-by: default avatarAndrew Bonventre <andybons@golang.org>
      c4da6101
    • Brad Fitzpatrick's avatar
      doc/go1.10: note that netbsd/arm is definitely broken · 513a4691
      Brad Fitzpatrick authored
      Remove the ambiguity, know that we know it's actually broken,
      per https://github.com/golang/go/issues/23073#issuecomment-351045421
      
      Updates #23073
      
      Change-Id: I9b904da2f4c7105a0727d2a9056aaa6895d3dadc
      Reviewed-on: https://go-review.googlesource.com/83856Reviewed-by: default avatarIan Lance Taylor <iant@golang.org>
      513a4691
    • Brad Fitzpatrick's avatar
      A+C: automated updates for Go 1.10 · 1fc71e37
      Brad Fitzpatrick authored
      Add Adam Thomason (individual CLA)
      Add Adrian Hesketh (individual CLA)
      Add Aeneas Rekkas (arekkas) (individual CLA)
      Add Afanasev Stanislav (individual CLA)
      Add Agniva De Sarker (individual CLA)
      Add Alexander Pantyukhin (individual CLA)
      Add Alexandre Parentea (individual CLA)
      Add Aman Gupta (individual CLA)
      Add Anand K. Mistry (individual CLA)
      Add Andrii Soldatenko (individual CLA)
      Add Andrii Soluk (individual CLA)
      Add Andrzej Żeżel (individual CLA)
      Add Anthony Alves (individual CLA)
      Add Anthony Sottile (individual CLA)
      Add Ariel Mashraki (individual CLA)
      Add Axel Wagner (individual CLA)
      Add Ben Haines (individual CLA)
      Add Ben Laurie (corporate CLA for Google Inc.)
      Add Ben Schwartz (corporate CLA for Google Inc.)
      Add Blain Smith (individual CLA)
      Add Blake Mesdag (individual CLA)
      Add Borja Clemente (individual CLA)
      Add Brett Merrill (individual CLA)
      Add Brian Kessler (individual CLA)
      Add Burak Guven (individual CLA)
      Add Cholerae Hu (individual CLA)
      Add Chris Ball (individual CLA)
      Add Christian Alexander (individual CLA)
      Add Christopher Henderson (individual CLA)
      Add Christopher Koch (corporate CLA for Google Inc.)
      Add Christos Zoulas (individual CLA)
      Add Daniela Petruzalek (individual CLA)
      Add Danny Rosseau (individual CLA)
      Add Davor Kapsa (individual CLA)
      Add Edan Bedrik (individual CLA)
      Add Elbert Fliek (individual CLA)
      Add Elena Grahovac (individual CLA)
      Add Emerson Lin (individual CLA)
      Add Eric Rescorla (individual CLA)
      Add Evan Jones (individual CLA)
      Add Frank Somers (individual CLA)
      Add Frederic Guillot (individual CLA)
      Add Garret Kelly (corporate CLA for Google Inc.)
      Add Grant Griffiths (individual CLA)
      Add Guilherme Garnier (individual CLA)
      Add Guilherme Rezende (individual CLA)
      Add Hanjun Kim (individual CLA)
      Add Henry Adi Sumarto (individual CLA)
      Add Henry Bubert (individual CLA)
      Add Herbie Ong (corporate CLA for Google Inc.)
      Add Hilko Bengen (individual CLA)
      Add Hiroaki Nakamura (individual CLA)
      Add Ian Kent (individual CLA)
      Add Inanc Gumus (individual CLA)
      Add Iskander Sharipov (corporate CLA for Intel Corporation)
      Add Ivan Bertona (individual CLA)
      Add James Lawrence (individual CLA)
      Add James Treanor (individual CLA)
      Add Jamie Liu (corporate CLA for Google Inc.)
      Add Jared Culp (individual CLA)
      Add Jason Wangsadinata (individual CLA)
      Add Javier Segura (individual CLA)
      Add Jean-Francois Cantin (individual CLA)
      Add Jeet Parekh (individual CLA)
      Add Jelte Fennema (individual CLA)
      Add Jimmy Frasche (individual CLA)
      Add Joshua Rubin (individual CLA)
      Add Juan Carlos (individual CLA)
      Add Jude Pereira (individual CLA)
      Add Karel Pazdera (individual CLA)
      Add Karsten Köhler (individual CLA)
      Add Kenji Yano (individual CLA)
      Add Kevin Ruffin (individual CLA)
      Add Kieran Colford (individual CLA)
      Add Kirk Han (individual CLA)
      Add Kunpei Sakai (individual CLA)
      Add Kyle Shannon (individual CLA)
      Add Kyohei Kadota (individual CLA)
      Add Lakshay Garg (individual CLA)
      Add Lann Martin (corporate CLA for Google Inc.)
      Add Laurent Voisin (individual CLA)
      Add Leigh McCulloch (individual CLA)
      Add Lorenz Bauer (corporate CLA for CloudFlare, Inc.)
      Add Luca Bruno (corporate CLA for CoreOS, Inc)
      Add Luke Granger-Brown (individual CLA)
      Add Lyle Franklin (individual CLA)
      Add Maicon Costa (individual CLA)
      Add Manish Goregaokar (individual CLA)
      Add Mansour Rahimi (individual CLA)
      Add Mark Percival (individual CLA)
      Add Mark Pulford (individual CLA)
      Add Mark Wolfe (individual CLA)
      Add Martins Sipenko (individual CLA)
      Add Mat Byczkowski (individual CLA)
      Add Matej Baćo (individual CLA)
      Add Mateus Amin (individual CLA)
      Add Matt Dee (individual CLA)
      Add Matthew Broberg (individual CLA)
      Add Max Schmitt (individual CLA)
      Add Mayank Kumar (individual CLA)
      Add Michael Brandenburg (individual CLA)
      Add Michael McLoughlin (individual CLA)
      Add Michael Schurter (individual CLA)
      Add Michael Steinert (individual CLA)
      Add Michal Pristas (individual CLA)
      Add Mihail Minaev (individual CLA)
      Add Muhammad Falak R Wani (individual CLA)
      Add Naoki Kanatani (individual CLA)
      Add Nicolas BRULEZ (individual CLA)
      Add Nils Larsgård (individual CLA)
      Add Noble Johnson (individual CLA)
      Add Paul Boyd (individual CLA)
      Add Paul Ruest (individual CLA)
      Add Peter Wu (corporate CLA for CloudFlare, Inc.)
      Add Petrica Voicu (individual CLA)
      Add Pontus Leitzler (individual CLA)
      Add Radek Sohlich (individual CLA)
      Add Rajath Agasthya (individual CLA)
      Add Rajender Reddy Kompally (individual CLA)
      Add Ramazan AYYILDIZ (individual CLA)
      Add RaviTeja Pothana (individual CLA)
      Add Reilly Watson (individual CLA)
      Add Roman Budnikov (individual CLA)
      Add Ross Chater (individual CLA)
      Add Rudi Kramer (individual CLA)
      Add Ryoichi KATO (individual CLA)
      Add Ryuji Iwata (individual CLA)
      Add Scott Crunkleton (individual CLA)
      Add Seiji Takahashi (individual CLA)
      Add Sergey Frolov (corporate CLA for Google Inc.)
      Add Sergey Semin (individual CLA)
      Add Sergiusz Bazanski (individual CLA)
      Add Stanislav Afanasev (individual CLA)
      Add Sukrit Handa (individual CLA)
      Add Sylvain Zimmer (individual CLA)
      Add Tao Wang (individual CLA)
      Add Terin Stock (individual CLA)
      Add Thiago Avelino (individual CLA)
      Add Thomas Wanielista (individual CLA)
      Add Tim Cooper (individual CLA)
      Add Tim Wright (individual CLA)
      Add Tobias Assarsson (individual CLA)
      Add Tom Lanyon (corporate CLA for Google Inc.)
      Add Tom Levy (individual CLA)
      Add Troels Thomsen (individual CLA)
      Add Tugdual Saunier (individual CLA)
      Add Tyler Bui-Palsulich (corporate CLA for Google Inc.)
      Add Wembley G. Leach, Jr (individual CLA)
      Add Will Faught (individual CLA)
      Add Wèi Cōngruì (individual CLA)
      Add Xi Ruoyao (individual CLA)
      Add Yann Salaün (individual CLA)
      Add Yosuke Akatsuka (individual CLA)
      Add Zach Gershman (individual CLA)
      Add Zhengyu He (corporate CLA for Google Inc.)
      Add Zhongtao Chen (individual CLA)
      Add Роман Хавроненко (individual CLA)
      Add Тарас Буник (individual CLA)
      
      Updates #12042
      
      Change-Id: If8fd708d32434b8ba21a0b3ef433b0d176626ce8
      Reviewed-on: https://go-review.googlesource.com/83858Reviewed-by: default avatarAndrew Bonventre <andybons@golang.org>
      1fc71e37
    • Tobias Klauser's avatar
      doc/go1.10: fix formatting of 'go tool fix' examples · fa904420
      Tobias Klauser authored
      Also remove a superfluous </p>
      
      Change-Id: Idca51cdfbd8abc6669f00c80ca3fb7f225ee445c
      Reviewed-on: https://go-review.googlesource.com/84015Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
      fa904420
    • Russ Cox's avatar
      testing: do not crash when m.Run is called twice and -test.testlogfile is used · 94d7c884
      Russ Cox authored
      Tests exist that call m.Run in a loop‽
      Now we have one too.
      
      Fixes #23129.
      
      Change-Id: I8cbecb724f239ae14ad45d75e67d12c80e41c994
      Reviewed-on: https://go-review.googlesource.com/83956
      Run-TryBot: Russ Cox <rsc@golang.org>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      Reviewed-by: default avatarIan Lance Taylor <iant@golang.org>
      94d7c884
    • Wèi Cōngruì's avatar
      os: don't wait for Close if the File was returned by NewFile · e28a0d39
      Wèi Cōngruì authored
      os.NewFile doesn't put the fd into non-blocking mode.
      In most cases, an *os.File returned by os.NewFile is in blocking mode.
      
      Updates #7970
      Updates #21856
      Updates #23111
      
      Change-Id: Iab08432e41f7ac1b5e25aaa8855d478adb7f98ed
      Reviewed-on: https://go-review.googlesource.com/83995Reviewed-by: default avatarIan Lance Taylor <iant@golang.org>
      e28a0d39
    • Ian Lance Taylor's avatar
      cmd/cgo: don't define intgo in export prologue · b944f91f
      Ian Lance Taylor authored
      The export prologue goes into the _cgo_export.h file, where it may be
      be #include'd by a .swig file. As SWIG defines its own type "intgo",
      the definition of "intgo" in the export prologue could conflict.
      Since we don't need to define "intgo" in the _cgo_export.h file, don't.
      
      Defining "intgo" in _cgo_export.h was new for this release, so this
      should not break any existing code.
      
      No test case as I can't quite bring myself to write a test that
      combines SWIG and cgo.
      
      Change-Id: I8073e8300a1860cecd5994b9ad07dd35a4298c89
      Reviewed-on: https://go-review.googlesource.com/83936
      Run-TryBot: Ian Lance Taylor <iant@golang.org>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
      b944f91f
    • Russ Cox's avatar
      testing: emphasize that Fatal/FailNow/etc run deferred calls · 29918e85
      Russ Cox authored
      Fixes #22989.
      
      Change-Id: I9776a7b0d0598c2cb118c323d1f8f933665da254
      Reviewed-on: https://go-review.googlesource.com/83881
      Run-TryBot: Russ Cox <rsc@golang.org>
      Reviewed-by: default avatarIan Lance Taylor <iant@golang.org>
      Reviewed-by: default avatarRob Pike <r@golang.org>
      29918e85
    • Russ Cox's avatar
      testing: define Run result a little more clearly · d4529867
      Russ Cox authored
      t.Run(f) does not wait for f after f calls t.Parallel.
      Otherwise it would be impossible to create new
      parallel sibling subtests for f.
      
      Fixes #22993.
      
      Change-Id: I27e1555ab1ff608eb8155db261d5e7ee8f486aef
      Reviewed-on: https://go-review.googlesource.com/83880
      Run-TryBot: Russ Cox <rsc@golang.org>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      Reviewed-by: default avatarIan Lance Taylor <iant@golang.org>
      d4529867
    • Russ Cox's avatar
      cmd/go: apply same per-package flags to compile and link of test · 2c296dc8
      Russ Cox authored
      If package strings has a particular set of gcflags, then the strings_test
      pseudo-package built as part of the test binary started inheriting the
      same flags in CL 81496, to fix #22831.
      
      Now the package main and final test binary link built as part of the
      strings test binary also inherit the same flags, to fix #22994.
      
      I am slightly uneasy about reusing package strings's flags for
      package main, but the alternative would be to introduce some
      kind of special case, which I'd be even more uneasy about.
      
      This interpretation preserves the Go 1.9 behavior of existing
      commands like:
      
      	go test -c -ldflags=-X=mypkg.debugString=foo mypkg
      
      Fixes #22994.
      
      Change-Id: I9ab83bf1a9a6adae530a7715b907e709fd6c1b5d
      Reviewed-on: https://go-review.googlesource.com/83879
      Run-TryBot: Russ Cox <rsc@golang.org>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      Reviewed-by: default avatarIan Lance Taylor <iant@golang.org>
      2c296dc8
    • Ian Lance Taylor's avatar
      net, os: don't wait for Close in blocking mode · 0f3ab149
      Ian Lance Taylor authored
      Updates #7970
      Updates #21856
      Updates #23111
      
      Change-Id: I0cd0151fcca740c40c3c976f941b04e98e67b0bf
      Reviewed-on: https://go-review.googlesource.com/83715Reviewed-by: default avatarRuss Cox <rsc@golang.org>
      0f3ab149
    • Robert Griesemer's avatar
      go/types: remove TODOs from API that cannot be changed (cleanup) · d0b24679
      Robert Griesemer authored
      Change-Id: I4e357a250b2f9cfbf780b05c5f54805682b19a62
      Reviewed-on: https://go-review.googlesource.com/83935Reviewed-by: default avatarMatthew Dempsky <mdempsky@google.com>
      d0b24679
    • JBD's avatar
      doc: add some links to the diagnostics page · 774ae547
      JBD authored
      Updates #22027.
      
      Change-Id: I468348d2b000f146f88ef8b7cf450eea8d1c12a7
      Reviewed-on: https://go-review.googlesource.com/83917Reviewed-by: default avatarAndrew Bonventre <andybons@golang.org>
      774ae547
  3. 13 Dec, 2017 8 commits
  4. 12 Dec, 2017 5 commits
  5. 11 Dec, 2017 5 commits