-
Notifications
You must be signed in to change notification settings - Fork 17.8k
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/dist: regex of test does not allow test names in -run parameter #29413
Comments
Change https://golang.org/cl/155838 mentions this issue: |
As far as I know, |
The purpose of A new build created in
This fix seems inline with the description of the tool and allows to fix tests independently of the build process as the
|
Yes, but only during the process of a complete build of Go. If you just want to test a package yourself, just use |
When working on several projects, a stable Go version resides in the default directory. When re-building go to investigate some issue. This unstable version resides under Using If |
If you want to work on Go's master/tip version, but still be able to use the stable version, you can simply use aliases. For example, Like @ianlancetaylor said, if you're working on Go itself, you're expected to just use |
On Windows, this is not solving the issue. Here is the process go 1.12 beta 2 of which some seems undocumented when reading https://golang.org/doc/install. I use GOPATH to distinguish development work on Go from the rest. Go is installed on the default directory c:\Go.
Documentation is at least incomplete. I believe that this issue is worth re-opening. |
Your last comment does not contain |
Running the instructions using go 1.12 beta2 is indeed successful. On Windows, two things to know which might be written elsewhere:
|
Similarly, using Maybe, |
No, the make scripts should not write the output binaries to GOPATH/bin. If that were the case, it would be impossible to build two versions of Go from source, as the Please don't use this issue to make other comments about buiding or testing Go; the issue is closed. If you have any questions or would like to share tips with other Go developers, see https://github.com/golang/go/wiki/Questions. |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release? Yes, on tip
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
C:\Program Files (x86)\Google\Cloud SDK>go tool dist test -run=^TestScript:cmd/go$
What did you expect to see?
What did you see instead?
No test is executed.
This is especially a problem to test
cmd/go
package.Running the tests of cmd/go times out even in short mode (#25300).
Further, In short mode, no external network is usable and no test of f.i. of git is doable (#26837).
The fix handles the regex in the format testname:package-name as an added case.
The text was updated successfully, but these errors were encountered: