forked from cue-lang/cue
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmd/cue: fix race in testscript tests that use go/packages
We have recently been seeing a number of test flakes in the get_go_types.txt which were ultimately reported as golang/go#44137. However, it turns out this is actually caused by an interaction between the ./... pattern and use of go/packages within a testscript test, specifically go/packages (via cmd/go) writing temporary files and directories to $WORK/tmp which then end up racing with the walk of $WORK to find directories/packages that match ./... As of v1.8.0, in a standard testscript setup a temporary directory is established at $WORK/.tmp. We now follow that same pattern for the home directory for consistency's sake. Change-Id: Ia8c7ffd471f9879d3283a47db5f2a5e165f619e1 Reviewed-on: https://cue-review.googlesource.com/c/cue/+/9002 Reviewed-by: CUE cueckoo <cueckoo@gmail.com> Reviewed-by: Paul Jolly <paul@myitcv.org.uk>
- Loading branch information
Showing
4 changed files
with
32 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters