]> Cypherpunks repositories - gostls13.git/commitdiff
go/build: allow io/fs to depend on time
authorRuss Cox <rsc@golang.org>
Mon, 6 Jul 2020 13:42:52 +0000 (09:42 -0400)
committerRuss Cox <rsc@golang.org>
Fri, 16 Oct 2020 16:41:55 +0000 (16:41 +0000)
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>
src/go/build/deps_test.go

index 79836c0d674f673a884c2a3f204bd4e4cd5b6803..96e239ad773510173ecab3dfa76d98c1e5e1ab08 100644 (file)
@@ -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