I work on a project with the following structure, and have been developing it for months without any problem.
project/
module1/
module1.go
module2/
module2.go
submodule1/
submodule1.go
submodule2/
submodule2.go
module3/
module3.go
As of today, when I execute `go build ./...` at the top of the project the following errors result.
module3/module3.go:98: undefined: submodule2.FunctionInSubmodule2
The code in question resembles the following.
The only change I noticed starting today was the output from go build.
Previously,
the package names were listed during the build, but now I am seeing
them as paths in my home directory. These paths are also prefixed with
underscores.
$ go build ./...
# _/home/myuser/myworkspace/project/source/backend/sundor
module3/module3.go:98: undefined: submodule2.FunctionInSubmodule2
Note that `/home/myuser/myworkspace/project` in a symlink to `$GOPATH/src/
github.com/company/project`I am running go 1.5.1 on Ubuntu 14.04.
I
don't remember ever seeing the underscores in my imports before. Is
this an issue anyone else has encountered. Any suggestions are
appreciated.