-
Notifications
You must be signed in to change notification settings - Fork 17.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cmd/go: -workfile flag appears to not work with "go test" #48576
Comments
I'm also surprised and slightly worried that I can't seem to find any test scripts exercising this flag :) Which probably explains why it doesn't work. |
Change https://golang.org/cl/351750 mentions this issue: |
While reading the help text for #48576, I noticed that the output was misaligned. Turns out it's because two lines have space indentation, while the rest use tab indentation. Fix that. Change-Id: Ie7c473d892ca13852fa2134f3cdef21e9210e02e Reviewed-on: https://go-review.googlesource.com/c/go/+/351750 Trust: Daniel Martí <mvdan@mvdan.cc> Run-TryBot: Daniel Martí <mvdan@mvdan.cc> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Jay Conrod <jayconrod@google.com>
Reproduced with
There are a couple test scripts that use |
You're absolutely right that there are some tests, I apparently can't grep :) |
@matloob I was wondering if you've had time to look into this bug - due to my workflow with many dozens of git repositories cloned, I am largely unable to properly test and daily drive workspaces :) My current alternative is to keep moving |
Sorry was heads down trying to get things in for the freeze |
Change https://golang.org/cl/366174 mentions this issue: |
I am trying to test workspaces once again. I have lots of cloned git repositories, and often I just need to work on 2 or 3 at a time. I don't want to drop a single
go.work
; I need to switch between multiple workspaces depending on what I'm currently doing.So I thought I'd drop a file like
foo.work
and temporarily use it viago test -workfile=../foo.work ./...
. However, it appears to have no effect at all.Worse even, it appears like
go test -workfile=doesnotexist ./...
also makes no difference at all. It seems like the flag is just never taking effect?cc @matloob @bcmills @jayconrod
The text was updated successfully, but these errors were encountered: