Well, I’m building in a clean jail with nothing but the OS and go and the source (fetched tar for latest master from github). When I build, I see:
`root@10amd64-default:/tmp/work/syncthing-master # env GOPATH=/tmp/work/syncthing-master/Godeps/_workspace:/tmp/work/syncthing-master go build ./cmd/syncthing cmd/syncthing/gui.go:24:2: cannot find package “github.com/syncthing/syncthing/internal/auto” in any of: /usr/local/go/src/pkg/github.com/syncthing/syncthing/internal/auto (from $GOROOT) /tmp/work/syncthing-master/Godeps/_workspace/src/github.com/syncthing/syncthing/internal/auto (from $GOPATH) /tmp/work/syncthing-master/src/github.com/syncthing/syncthing/internal/auto cmd/syncthing/gui.go:25:2: cannot find package “github.com/syncthing/syncthing/internal/config” in any of: /usr/local/go/src/pkg/github.com/syncthing/syncthing/internal/config (from $GOROOT) /tmp/work/syncthing-master/Godeps/_workspace/src/github.com/syncthing/syncthing/internal/config (from $GOPATH) /tmp/work/syncthing-master/src/github.com/syncthing/syncthing/internal/config cmd/syncthing/main.go:31:2: cannot find package “github.com/syncthing/syncthing/internal/discover” in any of: /usr/local/go/src/pkg/github.com/syncthing/syncthing/internal/discover (from $GOROOT) /tmp/work/syncthing-master/Godeps/_workspace/src/github.com/syncthing/syncthing/internal/discover (from $GOPATH) /tmp/work/syncthing-master/src/github.com/syncthing/syncthing/internal/discover cmd/syncthing/gui.go:26:2: cannot find package “github.com/syncthing/syncthing/internal/events” in any of: /usr/local/go/src/pkg/github.com/syncthing/syncthing/internal/events (from $GOROOT) /tmp/work/syncthing-master/Godeps/_workspace/src/github.com/syncthing/syncthing/internal/events (from $GOPATH) /tmp/work/syncthing-master/src/github.com/syncthing/syncthing/internal/events cmd/syncthing/main.go:33:2: cannot find package “github.com/syncthing/syncthing/internal/files” in any of: /usr/local/go/src/pkg/github.com/syncthing/syncthing/internal/files (from $GOROOT) /tmp/work/syncthing-master/Godeps/_workspace/src/github.com/syncthing/syncthing/internal/files (from $GOPATH) /tmp/work/syncthing-master/src/github.com/syncthing/syncthing/internal/files cmd/syncthing/gui.go:27:2: cannot find package “github.com/syncthing/syncthing/internal/logger” in any of: /usr/local/go/src/pkg/github.com/syncthing/syncthing/internal/logger (from $GOROOT) /tmp/work/syncthing-master/Godeps/_workspace/src/github.com/syncthing/syncthing/internal/logger (from $GOPATH) /tmp/work/syncthing-master/src/github.com/syncthing/syncthing/internal/logger cmd/syncthing/gui.go:28:2: cannot find package “github.com/syncthing/syncthing/internal/model” in any of: /usr/local/go/src/pkg/github.com/syncthing/syncthing/internal/model (from $GOROOT) /tmp/work/syncthing-master/Godeps/_workspace/src/github.com/syncthing/syncthing/internal/model (from $GOPATH) /tmp/work/syncthing-master/src/github.com/syncthing/syncthing/internal/model cmd/syncthing/gui_csrf.go:19:2: cannot find package “github.com/syncthing/syncthing/internal/osutil” in any of: /usr/local/go/src/pkg/github.com/syncthing/syncthing/internal/osutil (from $GOROOT) /tmp/work/syncthing-master/Godeps/_workspace/src/github.com/syncthing/syncthing/internal/osutil (from $GOPATH) /tmp/work/syncthing-master/src/github.com/syncthing/syncthing/internal/osutil cmd/syncthing/gui.go:29:2: cannot find package “github.com/syncthing/syncthing/internal/protocol” in any of: /usr/local/go/src/pkg/github.com/syncthing/syncthing/internal/protocol (from $GOROOT) /tmp/work/syncthing-master/Godeps/_workspace/src/github.com/syncthing/syncthing/internal/protocol (from $GOPATH) /tmp/work/syncthing-master/src/github.com/syncthing/syncthing/internal/protocol cmd/syncthing/gui.go:30:2: cannot find package “github.com/syncthing/syncthing/internal/upgrade” in any of: /usr/local/go/src/pkg/github.com/syncthing/syncthing/internal/upgrade (from $GOROOT) /tmp/work/syncthing-master/Godeps/_workspace/src/github.com/syncthing/syncthing/internal/upgrade (from $GOPATH) /tmp/work/syncthing-master/src/github.com/syncthing/syncthing/internal/upgrade cmd/syncthing/main.go:38:2: cannot find package “github.com/syncthing/syncthing/internal/upnp” in any of: /usr/local/go/src/pkg/github.com/syncthing/syncthing/internal/upnp (from $GOROOT) /tmp/work/syncthing-master/Godeps/_workspace/src/github.com/syncthing/syncthing/internal/upnp (from $GOPATH) /tmp/work/syncthing-master/src/github.com/syncthing/syncthing/internal/upnp root@10amd64-default:/tmp/work/syncthing-master #
`
I guess it wants all source to be under src...
? I mean, I could just copy it over, but from what you described that shouldn’t be necessary.