1. 29 May, 2018 20 commits
  2. 28 May, 2018 4 commits
  3. 27 May, 2018 1 commit
    • Ian Lance Taylor's avatar
      cmd/go: don't generate output for "go build -o /dev/null x.go" · c1d9d1f3
      Ian Lance Taylor authored
      We look for "-o /dev/null", and, if found, pretend that there was no
      "-o" option and don't generate an action to create the final executable.
      
      We look for "go build x.go", and, if found, and if -o was not used,
      pretend that the user specified "-o x".
      
      Unfortunately, we were doing those in the wrong order, so that "go
      build -o /dev/null x.go" would first clear the "-o" option and then
      set it to "-o x".
      
      This CL flips the order so that the right thing happens.
      
      Fixes #25579
      
      Change-Id: Ic9556ac0a57f7b45b685951bc96ba5ea4633b860
      Reviewed-on: https://go-review.googlesource.com/114715
      Run-TryBot: Ian Lance Taylor <iant@golang.org>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
      c1d9d1f3
  4. 26 May, 2018 5 commits
  5. 25 May, 2018 6 commits
  6. 24 May, 2018 4 commits
    • Ian Lance Taylor's avatar
      cmd/go, cmd/vet, go/internal/gccgoimport: make vet work with gccgo · 30b6bc30
      Ian Lance Taylor authored
      When using gccgo/GoLLVM, there is no package file for a standard
      library package. Since it is impossible for the go tool to rebuild the
      package, and since the package file exists only in the form of a .gox
      file, this seems like the best choice. Unfortunately it was confusing
      vet, which wanted to see a real file. This caused vet to report errors
      about missing package files for standard library packages. The
      gccgoimporter knows how to correctly handle this case. Fix this by
      
      1) telling vet which packages are standard;
      2) letting vet skip those packages;
      3) letting the gccgoimporter handle this case.
      
      As a separate required fix, gccgo/GoLLVM has no runtime/cgo package,
      so don't try to depend on it (as it happens, this fixes #25324).
      
      The result is that the cmd/go vet tests pass when using -compiler=gccgo.
      
      Fixes #25324
      
      Change-Id: Iba8f948fe944da5dc674f580bd3321929ee50fa0
      Reviewed-on: https://go-review.googlesource.com/113716
      Run-TryBot: Ian Lance Taylor <iant@golang.org>
      Reviewed-by: default avatarBryan C. Mills <bcmills@google.com>
      Reviewed-by: default avatarThan McIntosh <thanm@google.com>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      30b6bc30
    • Jonathan Chen's avatar
      doc: clarify sentence · 16de91d3
      Jonathan Chen authored
      Change-Id: I6eb182968a8e00fe359d812f1eefc9bda896395b
      GitHub-Last-Rev: a354b4d2168ed4f1f1744c99c36ece276a24e046
      GitHub-Pull-Request: golang/go#25540
      Reviewed-on: https://go-review.googlesource.com/114318Reviewed-by: default avatarRob Pike <r@golang.org>
      16de91d3
    • Tobias Klauser's avatar
      cmd/vendor/golang.org/x: pick up upstream fixes for broken android and iOS tests · c2b4b316
      Tobias Klauser authored
      Pick up the changes from CL 114395, CL 114396 and CL 114415.
      
      By re-running govendor in the latest version, some files from
      golang.org/x/sys/unix which are ignored for the build also got removed
      from the vendored copy.
      
      Updates #25528
      Updates #25535
      
      Change-Id: I5c0002fc3a37d6abaafed2e15cc3e2ade803ad7b
      Reviewed-on: https://go-review.googlesource.com/114416
      Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
      Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      c2b4b316
    • Hana Kim's avatar
      runtime/pprof: allow tests to run multiple times · 9eb2c434
      Hana Kim authored
      TestMutexProfile and TestEmptyCallStack couldn't run multiple times
      because they mutate state in runtime (mutex profile counters and
      a user-defined profile type) and test whether the state
      matches what it is supposed to be after the very first run.
      
      We fix TestMutexProfile by relaxing the expected state condition.
      We fix TestEmptyCallStack by creating a new profile with a different
      name every time the test runs.
      
      For #25520
      
      Change-Id: I8e50cd9526eb650c8989457495ff90a24ce07863
      Reviewed-on: https://go-review.googlesource.com/114495
      Run-TryBot: Hyang-Ah Hana Kim <hyangah@gmail.com>
      Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
      9eb2c434