Commit b4f21d6e authored by Marvin Stenger's avatar Marvin Stenger Committed by Ian Lance Taylor

cmd/dist: fix mkdeps again

Actually execute topological sort to get those special dependencies right.

Mistake introduced in CL 67650.

Change-Id: I22fd6efb4f033deaf7f191431c0401b59b8a97d0
Reviewed-on: https://go-review.googlesource.com/67870
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
parent 0b6b5641
...@@ -13,10 +13,10 @@ var builddeps = map[string][]string{ ...@@ -13,10 +13,10 @@ var builddeps = map[string][]string{
"bytes": { "bytes": {
"errors", // bytes "errors", // bytes
"internal/cpu", // bytes
"io", // bytes "io", // bytes
"unicode", // bytes "unicode", // bytes
"unicode/utf8", // bytes "unicode/utf8", // bytes
"internal/cpu", // bytes
}, },
"cmd/go": { "cmd/go": {
...@@ -456,7 +456,9 @@ var builddeps = map[string][]string{ ...@@ -456,7 +456,9 @@ var builddeps = map[string][]string{
"strconv", // debug/macho "strconv", // debug/macho
}, },
"encoding": {}, "encoding": {
"runtime", // encoding
},
"encoding/base64": { "encoding/base64": {
"io", // encoding/base64 "io", // encoding/base64
...@@ -505,7 +507,9 @@ var builddeps = map[string][]string{ ...@@ -505,7 +507,9 @@ var builddeps = map[string][]string{
"unicode/utf8", // encoding/xml "unicode/utf8", // encoding/xml
}, },
"errors": {}, "errors": {
"runtime", // errors
},
"flag": { "flag": {
"errors", // flag "errors", // flag
...@@ -625,22 +629,26 @@ var builddeps = map[string][]string{ ...@@ -625,22 +629,26 @@ var builddeps = map[string][]string{
"hash", // hash/adler32 "hash", // hash/adler32
}, },
"internal/cpu": {}, "internal/cpu": {
"runtime", // internal/cpu
},
"internal/poll": { "internal/poll": {
"errors", // internal/poll "errors", // internal/poll
"internal/race", // internal/poll
"io", // internal/poll "io", // internal/poll
"runtime", // internal/poll
"sync", // internal/poll "sync", // internal/poll
"sync/atomic", // internal/poll "sync/atomic", // internal/poll
"syscall", // internal/poll "syscall", // internal/poll
"time", // internal/poll "time", // internal/poll
"internal/race", // internal/poll
"runtime", // internal/poll
"unicode/utf16", // internal/poll "unicode/utf16", // internal/poll
"unicode/utf8", // internal/poll "unicode/utf8", // internal/poll
}, },
"internal/race": {}, "internal/race": {
"runtime", // internal/race
},
"internal/singleflight": { "internal/singleflight": {
"sync", // internal/singleflight "sync", // internal/singleflight
...@@ -659,7 +667,9 @@ var builddeps = map[string][]string{ ...@@ -659,7 +667,9 @@ var builddeps = map[string][]string{
"unicode/utf16", // internal/syscall/windows/registry "unicode/utf16", // internal/syscall/windows/registry
}, },
"internal/syscall/windows/sysdll": {}, "internal/syscall/windows/sysdll": {
"runtime", // internal/syscall/windows/sysdll
},
"io": { "io": {
"errors", // io "errors", // io
...@@ -690,7 +700,9 @@ var builddeps = map[string][]string{ ...@@ -690,7 +700,9 @@ var builddeps = map[string][]string{
"internal/cpu", // math "internal/cpu", // math
}, },
"math/bits": {}, "math/bits": {
"runtime", // math/bits
},
"net/url": { "net/url": {
"bytes", // net/url "bytes", // net/url
...@@ -704,13 +716,13 @@ var builddeps = map[string][]string{ ...@@ -704,13 +716,13 @@ var builddeps = map[string][]string{
"os": { "os": {
"errors", // os "errors", // os
"internal/poll", // os "internal/poll", // os
"internal/syscall/windows", // os
"io", // os "io", // os
"runtime", // os "runtime", // os
"sync", // os "sync", // os
"sync/atomic", // os "sync/atomic", // os
"syscall", // os "syscall", // os
"time", // os "time", // os
"internal/syscall/windows", // os
"unicode/utf16", // os "unicode/utf16", // os
}, },
...@@ -746,8 +758,8 @@ var builddeps = map[string][]string{ ...@@ -746,8 +758,8 @@ var builddeps = map[string][]string{
"runtime", // path/filepath "runtime", // path/filepath
"sort", // path/filepath "sort", // path/filepath
"strings", // path/filepath "strings", // path/filepath
"unicode/utf8", // path/filepath
"syscall", // path/filepath "syscall", // path/filepath
"unicode/utf8", // path/filepath
}, },
"reflect": { "reflect": {
...@@ -785,7 +797,9 @@ var builddeps = map[string][]string{ ...@@ -785,7 +797,9 @@ var builddeps = map[string][]string{
"runtime/internal/sys", // runtime "runtime/internal/sys", // runtime
}, },
"runtime/internal/atomic": {}, "runtime/internal/atomic": {
"runtime/internal/sys", // runtime/internal/atomic
},
"runtime/internal/sys": {}, "runtime/internal/sys": {},
...@@ -801,10 +815,10 @@ var builddeps = map[string][]string{ ...@@ -801,10 +815,10 @@ var builddeps = map[string][]string{
"strings": { "strings": {
"errors", // strings "errors", // strings
"internal/cpu", // strings
"io", // strings "io", // strings
"unicode", // strings "unicode", // strings
"unicode/utf8", // strings "unicode/utf8", // strings
"internal/cpu", // strings
}, },
"sync": { "sync": {
...@@ -813,14 +827,16 @@ var builddeps = map[string][]string{ ...@@ -813,14 +827,16 @@ var builddeps = map[string][]string{
"sync/atomic", // sync "sync/atomic", // sync
}, },
"sync/atomic": {}, "sync/atomic": {
"runtime", // sync/atomic
},
"syscall": { "syscall": {
"errors", // syscall
"internal/race", // syscall "internal/race", // syscall
"internal/syscall/windows/sysdll", // syscall
"runtime", // syscall "runtime", // syscall
"sync", // syscall "sync", // syscall
"errors", // syscall
"internal/syscall/windows/sysdll", // syscall
"sync/atomic", // syscall "sync/atomic", // syscall
"unicode/utf16", // syscall "unicode/utf16", // syscall
}, },
...@@ -855,15 +871,21 @@ var builddeps = map[string][]string{ ...@@ -855,15 +871,21 @@ var builddeps = map[string][]string{
"time": { "time": {
"errors", // time "errors", // time
"internal/syscall/windows/registry", // time
"runtime", // time "runtime", // time
"sync", // time "sync", // time
"syscall", // time "syscall", // time
"internal/syscall/windows/registry", // time
}, },
"unicode": {}, "unicode": {
"runtime", // unicode
},
"unicode/utf16": {}, "unicode/utf16": {
"runtime", // unicode/utf16
},
"unicode/utf8": {}, "unicode/utf8": {
"runtime", // unicode/utf8
},
} }
...@@ -68,6 +68,7 @@ func main() { ...@@ -68,6 +68,7 @@ func main() {
} }
topo = append(topo, p) topo = append(topo, p)
} }
walk("cmd/go")
// We're only going to print imports, not deps, // We're only going to print imports, not deps,
// in hopes of making deps.go intelligible to people // in hopes of making deps.go intelligible to people
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment