I've written a fix for the easyjson library using filepath functions, so 
I'm not worried about that. But I did expect os.Getwd() to return the same 
exact string, regardless of how the test is run.

"go test . -v" os.Getwd() uses the GOPATH variable
"go test . -c" results in a binary where os.Getwd() does not rely on the 
GOPATH variable, or converts the volume name to upper case.

os.TempDir(), for example, does not alter the volume name letter case 
depending on how it's executed. So it's a bit odd.

Andreas

On Tuesday, 18 April 2017 14:03:51 UTC+1, peterGo wrote:
>
> Andreas,
>
> To fix the easyjson library, please provide a simple recipe for 
> reproducing the error. A complete runnable program is good. A link on 
> play.golang.org is best. What did you expect to see? What did you see 
> instead?
>
> Peter
>
>

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