From 96fc07af1c551dd9746221149201e8ab57b90995 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Mon, 6 Jul 2020 09:42:52 -0400 Subject: [PATCH] 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 Run-TryBot: Russ Cox TryBot-Result: Go Bot Reviewed-by: Rob Pike --- src/go/build/deps_test.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -- 2.48.1