On Saturday, December 3, 2016 at 5:31:57 AM UTC+8, Ian Lance Taylor wrote:
>
> On Fri, Dec 2, 2016 at 11:24 AM, gd <di...@veryhaha.com <javascript:>> 
> wrote: 
> > It looks, for the official compiler, if the main package is under 
> GOPATH, 
> > then the order is: 
> > 1. the vendor folder 
> > 2. the standard packages 
> > 3. GOPATH folder 
> > 
> > If the main package is outsides of GOPATH, then the order is: 
> > 1. the standard packages 
> > 2. GOPATH folder 
> > the local vendor folder is totally ignored. 
> > 
> > I don't know if this is the well defined behaviour or not. 
>
> You can see the defined behavior by running `go help gopath`.  That 
> will tell you the search path when using the go tool. 
>
> If you are not using the go tool, the behavior is different. 
>


looks `go help gopath` doesn't mention standard packages are prior than 
GOPATH packages.
 

>
> Ian 
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to