golang.org\x\tools\go\ssa\interp\testdata\src\strings\strings.go:3:6: missing function body

Created on 23 May 2019  ·  4Comments  ·  Source: golang/go

$ go version go1.12.5 windows/amd64

Does this issue reproduce with the latest release?

yes

What operating system and processor architecture are you using (go env)?

go env Output

set GOARCH=amd64
set GOBIN=
set GOCACHE=%userprofile%\AppData\Local\go-build
set GOEXE=.exe
set GOFLAGS=
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOOS=windows
set GOPATH=%userprofile%\go
set GOPROXY=
set GORACE=
set GOROOT=C:\Go
set GOTMPDIR=
set GOTOOLDIR=C:\Go\pkg\tool\windows_amd64
set GCCGO=gccgo
set CC=gcc
set CXX=g++
set CGO_ENABLED=1
set GOMOD=
set CGO_CFLAGS=-g -O2
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-g -O2
set CGO_FFLAGS=-g -O2
set CGO_LDFLAGS=-g -O2
set PKG_CONFIG=pkg-config
set GOGCCFLAGS=-m64 -mthreads -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=%TMP%\go-build305408746=/tmp/go-build -gno-record-gcc-switches

What did you do?

cd %gopath%\src\golang.org\
git pull
go install

What did you expect to see?

No errors

What did you see instead?

golang.org\x\tools\go\ssa\interp\testdata\src\strings\strings.go:3:6: missing function body
golang.org\x\tools\go\ssa\interp\testdata\src\strings\strings.go:5:6: missing function body

https://github.com/golang/tools/blob/master/go/ssa/interp/testdata/src/strings/strings.go

WaitingForInfo

Most helpful comment

Accidently imported "golang.org/x/tools/go/ssa/interp/testdata/src/strings" with the Alt Enter shortcut in Goland instead of "strings". 2am facepalm.

All 4 comments

You can't run "git pull" in %gopath%\src\golang.org ... that's not a git repo.

What did you actually do?

Accidently imported "golang.org/x/tools/go/ssa/interp/testdata/src/strings" with the Alt Enter shortcut in Goland instead of "strings". 2am facepalm.

i had the same issue, it imported golang.org/x/tools/go/ssa/interp/testdata/src/strings

at the part of the import
golang.org/x/tools/go/ssa/interp/testdata/src/strings change to strings

Was this page helpful?
0 / 5 - 0 ratings