1. 29 May, 2018 22 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 2 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