mirror of https://github.com/golang/go.git
go/build: remove use of package log
package log does not belong here, even for an impossible condition. Change-Id: I6180a4f7766a8e5759db4f33d03703d0b678d0b4 Reviewed-on: https://go-review.googlesource.com/c/go/+/241077 Run-TryBot: Russ Cox <rsc@golang.org> Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
parent
87db6d90c9
commit
fcf1cb2cf5
|
|
@ -16,7 +16,6 @@ import (
|
||||||
"internal/goversion"
|
"internal/goversion"
|
||||||
"io"
|
"io"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"log"
|
|
||||||
"os"
|
"os"
|
||||||
"os/exec"
|
"os/exec"
|
||||||
pathpkg "path"
|
pathpkg "path"
|
||||||
|
|
@ -924,7 +923,7 @@ Found:
|
||||||
quoted := spec.Path.Value
|
quoted := spec.Path.Value
|
||||||
path, err := strconv.Unquote(quoted)
|
path, err := strconv.Unquote(quoted)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Panicf("%s: parser returned invalid quoted string: <%s>", filename, quoted)
|
panic(fmt.Sprintf("%s: parser returned invalid quoted string: <%s>", filename, quoted))
|
||||||
}
|
}
|
||||||
fileImports = append(fileImports, importPos{path, spec.Pos()})
|
fileImports = append(fileImports, importPos{path, spec.Pos()})
|
||||||
if path == "C" {
|
if path == "C" {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue