在“ darwin / amd64”上转到build 1.7检查“供应商树”路径,但“ linux / amd64”不行吗?

I am trying to build the same Go project, but one on a Mac, and the other on a Linux server, using the same command:

go build -i myproject.go

I am trying to troubleshoot why it cannot find some vendor libraries when building on the Linux server.

Locally, on my Mac, I see that it searches through a path called vendor tree:

myproject.go:1:1: cannot find package "myproject/myvendorlib" in any of:
    /blabla (vendor tree)
    /blabla (from $GOROOT)
    /blabla (from $GOPATH)

Which is good - it's what I expect and want (as the vendor library is actually there).

However, on the Linux server it seems to only search through the $GOROOT and the $GOPATH directories, not the vendor tree directory:

myproject.go:1:1: cannot find package "myproject/myvendorlib" in any of:
    /blabla (from $GOROOT)
    /blabla (from $GOPATH)
    /blabla

What dictates that it also checks the vendor tree directory on the Mac, but on the Linux server, it does not attempt to check in those directories?