aboutsummaryrefslogtreecommitdiff
path: root/src/go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2020-07-06 09:42:52 -0400
committerRuss Cox <rsc@golang.org>2020-10-16 16:41:55 +0000
commit96fc07af1c551dd9746221149201e8ab57b90995 (patch)
tree2b1cdbbe806a2cfd3a3ced18411cadc2bb21df8c /src/go
parent20819440fc65d28fabe8f7410ea8fe193cdc53c6 (diff)
downloadgo-96fc07af1c551dd9746221149201e8ab57b90995.tar.gz
go-96fc07af1c551dd9746221149201e8ab57b90995.zip
go/build: allow io/fs to depend on time
In preparation for moving os.FileInfo into io/fs. Also keep syscall from depending on io again. We want to keep them separated, in case io ever needs to start depending on time. For #41190. Change-Id: I98350fa03accf4a20c75ddebb0e961aa1ccccd2c Reviewed-on: https://go-review.googlesource.com/c/go/+/243905 Trust: Russ Cox <rsc@golang.org> Run-TryBot: Russ Cox <rsc@golang.org> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Rob Pike <r@golang.org>
Diffstat (limited to 'src/go')
-rw-r--r--src/go/build/deps_test.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/go/build/deps_test.go b/src/go/build/deps_test.go
index 79836c0d67..96e239ad77 100644
--- a/src/go/build/deps_test.go
+++ b/src/go/build/deps_test.go
@@ -99,6 +99,7 @@ var depsRules = `
RUNTIME
< io;
+ syscall !< io;
reflect !< sort;
RUNTIME, unicode/utf8
@@ -121,6 +122,9 @@ var depsRules = `
< context
< TIME;
+ TIME, io, sort
+ < io/fs;
+
# MATH is RUNTIME plus the basic math packages.
RUNTIME
< math
@@ -150,7 +154,7 @@ var depsRules = `
# OS is basic OS access, including helpers (path/filepath, os/exec, etc).
# OS includes string routines, but those must be layered above package os.
# OS does not include reflection.
- TIME, io, sort
+ io/fs
< internal/testlog
< internal/poll
< os