Change-Id: Ie2a77a9643697cfda4376db606711c09da220405
GitHub-Last-Rev:
ff1cf0b9d831d626f7a8e0e80340d908ce5c32cf
GitHub-Pull-Request: golang/go#53902
Reviewed-on: https://go-review.googlesource.com/c/go/+/417734
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Keith Randall <khr@google.com>
assert(shouldTest("// +build !windows !plan9", "windows", "amd64"))
}
-func getenv(key, def string) string {
- value := os.Getenv(key)
- if value != "" {
- return value
- }
- return def
-}
-
// overlayDir makes a minimal-overhead copy of srcRoot in which new files may be added.
func overlayDir(dstRoot, srcRoot string) error {
dstRoot = filepath.Clean(dstRoot)