-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.go
74 lines (70 loc) · 1.27 KB
/
main.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
package main
import (
"fmt"
"os/exec"
"sync"
)
var (
gits = []string{
"bbloom",
"go-bitswap",
"go-block-format",
"go-blockservice",
"go-cid",
"go-cidutil",
"go-datastore",
"go-ds-badger",
"go-ds-flatfs",
"go-ds-leveldb",
"go-ds-measure",
"go-filestore",
"go-fs-lock",
"go-graphsync",
"go-ipfs",
"go-ipfs-blockstore",
"go-ipfs-chunker",
"go-ipfs-cmds",
"go-ipfs-config",
"go-ipfs-delay",
"go-ipfs-ds-help",
"go-ipfs-exchange-interface",
"go-ipfs-exchange-offline",
"go-ipfs-files",
"go-ipfs-pinner",
"go-ipfs-posinfo",
"go-ipfs-pq",
"go-ipfs-provider",
"go-ipfs-routing",
"go-ipfs-util",
"go-ipld-cbor",
"go-ipld-format",
"go-ipld-git",
"go-ipns",
"go-log",
"go-merkledag",
"go-metrics-interface",
"go-mfs",
"go-path",
"go-peertaskqueue",
"go-unixfs",
"go-verifcid",
"interface-go-ipfs-core",
}
)
func main() {
path := ""
var wg sync.WaitGroup
for _, g := range gits {
wg.Add(1)
go func(g string) {
defer wg.Done()
path = "git@github.com:ipfs/" + g + ".git"
fmt.Println(path)
cmd := exec.Command("git", "clone", path)
cmd.Dir = "/Users/shuxian/Projects/joincloud/debug-libs/ipfs"
stdout, err := cmd.CombinedOutput()
fmt.Printf("start %s-%s\n", stdout, err)
}(g)
}
wg.Wait()
}