Re: [go-nuts] Go test to run over sub packages?

2016-07-30 Thread appleboy . tw
Hi all,

I write the coverage script on golang-testing repo 
,anybody can try it out.

Dave Cheney於 2016年6月23日星期四 UTC+8上午7時28分23秒寫道:
>
> Permitting symlinks inside GOPATH would introduce all the problems of one 
> source package having multiple locations that currently plague users of the 
> vendor/ feature. 

-- 
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.


RE: [go-nuts] Go test to run over sub packages?

2016-06-22 Thread Dave Cheney
Permitting symlinks inside GOPATH would introduce all the problems of one 
source package having multiple locations that currently plague users of the 
vendor/ feature. 

-- 
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.


RE: [go-nuts] Go test to run over sub packages?

2016-06-22 Thread John Souvestre
Ø  Symlinks and the go tools should be avoided.

 

Was this done intentionally?  If so, why?  If not, is it a bug which should be 
fixed?

 

John

John Souvestre - New Orleans LA

 

From: golang-nuts@googlegroups.com [mailto:golang-nuts@googlegroups.com] On 
Behalf Of Dave Cheney
Sent: 2016 June 21, Tue 19:19
To: golang-nuts
Cc: gabriel.kop...@gmail.com
Subject: Re: [go-nuts] Go test to run over sub packages?

 

I'm sorry to say that that is bad advice. Symlinks and the go tools should be 
avoided.

On Wednesday, 22 June 2016 08:29:33 UTC+10, gabriel...@gmail.com wrote:

Hi Ian, thanks for the confirmation!

It turns out that the cause of this behavior is that I had followed the 
instructions at 
https://github.com/karlseguin/the-little-go-book/blob/9f95b4405760fe9d24d4f9b7da93889cc9306f58/en/go.md#getting-started
 and
symlinked thus: `$ ln -s ~/code/golang-workspace/src/github.com/foo/proj 
~/code/proj`

 

In a directory structure without the symlink, things work correctly :)

 

I'll file an issue on the Little Book of Go about this gotcha.

 

Gabe

 

 

On Tuesday, June 21, 2016 at 3:09:35 PM UTC-7, Ian Lance Taylor wrote:

On Tue, Jun 21, 2016 at 12:42 PM,  <gabriel...@gmail.com> wrote: 
> Is `$ go test github.com/foo/proj/...` <http://github.com/foo/proj/...>  
> really supposed to work? 

Yes. 

> When I run it I get 
> 
> warning: "github.com/foo/proj/.. <http://github.com/foo/> ." matched no 
> packages 
> no packages to test 
> 
> But `cd src/github.com/foo/proj && go test ./...` does work as suggested. 

What is the value of your GOPATH environment variable? 

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.

-- 
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.


Re: [go-nuts] Go test to run over sub packages?

2016-06-21 Thread gabriel . kopley
Hi Ian, thanks for the confirmation!

It turns out that the cause of this behavior is that I had followed the 
instructions at 
https://github.com/karlseguin/the-little-go-book/blob/9f95b4405760fe9d24d4f9b7da93889cc9306f58/en/go.md#getting-started
 
and
symlinked thus: `$ ln -s ~/code/golang-workspace/src/github.com/foo/proj 
~/code/proj`

In a directory structure without the symlink, things work correctly :)

I'll file an issue on the Little Book of Go about this gotcha.

Gabe


On Tuesday, June 21, 2016 at 3:09:35 PM UTC-7, Ian Lance Taylor wrote:
>
> On Tue, Jun 21, 2016 at 12:42 PM,   
> wrote: 
> > Is `$ go test github.com/foo/proj/...`  
> really supposed to work? 
>
> Yes. 
>
> > When I run it I get 
> > 
> > warning: "github.com/foo/proj/..." matched no packages 
> > no packages to test 
> > 
> > But `cd src/github.com/foo/proj && go test ./...` does work as 
> suggested. 
>
> What is the value of your GOPATH environment variable? 
>
> 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.


Re: [go-nuts] Go test to run over sub packages?

2016-06-21 Thread Ian Lance Taylor
On Tue, Jun 21, 2016 at 12:42 PM,   wrote:
> Is `$ go test github.com/foo/proj/...` really supposed to work?

Yes.

> When I run it I get
>
> warning: "github.com/foo/proj/..." matched no packages
> no packages to test
>
> But `cd src/github.com/foo/proj && go test ./...` does work as suggested.

What is the value of your GOPATH environment variable?

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.