Skip to content

Instantly share code, notes, and snippets.

@myitcv
Created January 30, 2019 19:22
Show Gist options
  • Save myitcv/188c6d2cd78a9df925c00863160b1662 to your computer and use it in GitHub Desktop.
Save myitcv/188c6d2cd78a9df925c00863160b1662 to your computer and use it in GitHub Desktop.
gg output
$ go test -v -run="Script/command\$" myitcv.io/cmd/gg
=== RUN TestScripts
=== RUN TestScripts/command
=== PAUSE TestScripts/command
=== CONT TestScripts/command
--- PASS: TestScripts (0.06s)
--- PASS: TestScripts/command (10.84s)
<autogenerated>:1:
WORK=$WORK
HOME=/no-home
TMPDIR=$WORK/tmp
devnull=/dev/null
:=:
exe=
GOPATH=$WORK/gopath
CCACHE_DISABLE=1
GOARCH=amd64
GOOS=linux
GOROOT=/home/myitcv/gos
GOCACHE=/home/myitcv/.cache/go-build
GOPROXY=http://127.0.0.1:36261/mod
goversion=1.11
PATH=/tmp/gg_gobin_tmp_869540019:/home/myitcv/.mountpoints/x/src/myitcv.io/.bin:/home/myitcv/.mountpoints/x/src/myitcv.io/.dependencies/chromedriver/2.45:/home/myitcv/.mountpoints/x/src/myitcv.io/.dependencies/protobuf/3.6.0/bin:/home/myitcv/.mountpoints/x/src/myitcv.io/.bin:/home/myitcv/gos/misc/wasm:/home/myitcv/bin/myitcv_io_go:/home/myitcv/bin:/home/myitcv/gos/misc/wasm:/home/myitcv/bin/myitcv_io_go:/home/myitcv/bin:/home/myitcv/bin/bingo:/home/myitcv/nodes/bin:/home/myitcv/nodes/bin:/home/myitcv/rubys/bin:/home/myitcv/python3s/bin:/home/myitcv/pythons/bin:/home/myitcv/bin:/home/myitcv/usr/google-cloud-sdk/bin:/home/myitcv/usr/chromedriver:/home/myitcv/usr/wabt/bin:/home/myitcv/usr/git/bin:/home/myitcv/usr/clang/bin:/home/myitcv/usr/vim/bin:/home/myitcv/usr/neovim/bin:/home/myitcv/usr/bin:/sbin:/usr/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/myitcv/gos/bin:/home/myitcv/Android/Sdk/tools:/home/myitcv/Android/Sdk/platform-tools:/home/myitcv/.vim/plugged/fzf/bin
GOBINPATH=/tmp/gg_gobin_tmp_869540019/gobin
# general setup (0.000s)
> env HOME=$WORK/home
> env PATH=$GOPATH/bin:$PATH
# for the comamnd-based directive (0.256s)
> go install example.com/copy1
[stderr]
go: finding example.com/copy1 v1.0.0
go: downloading example.com/copy1 v1.0.0
# initial sanity check (0.000s)
> ! exists gen_input1_copy1.go
# first round (10.447s)
> gg -trace ./...
[stdout]
generate for mod found delta: [$WORK/gen_input1_copy1.go]
[stderr]
0 0 - start main
22 22 - start run
99 77 - initial list complete
99 0 - dep graph complete
99 0 - initial refreshDirectiveDeps complete
99 0 - initial loadMisses complete
99 0 - start work
106 6 - round complete [{Pkg: internal/cpu} {Pkg: unsafe} {Pkg: runtime/internal/sys} {Pkg: errors} {Pkg: unicode} {Pkg: unicode/utf8} {Pkg: math/bits} commandDep: copy1]
109 2 - round complete [{Pkg: math} {Pkg: internal/bytealg} {Pkg: runtime/internal/atomic} {Pkg: internal/race} {Pkg: sync/atomic}]
10179 10069 - round complete [{Pkg: mod [G]}]
10186 7 - round complete [{Pkg: strconv} {Pkg: runtime} {Pkg: internal/testlog}]
10186 0 - round complete [{Pkg: sync}]
10188 1 - round complete [{Pkg: io} {Pkg: syscall} {Pkg: reflect}]
10190 1 - round complete [{Pkg: text/tabwriter} {Pkg: internal/syscall/unix} {Pkg: time} {Pkg: sort} {Pkg: encoding/binary} {Pkg: hash} {Pkg: bytes} {Pkg: strings}]
10191 0 - round complete [{Pkg: internal/poll} {Pkg: hash/crc32} {Pkg: bufio} {Pkg: regexp/syntax}]
10191 0 - round complete [{Pkg: os} {Pkg: regexp}]
10192 0 - round complete [{Pkg: runtime/debug} {Pkg: fmt} {Pkg: path/filepath}]
10193 0 - round complete [{Pkg: io/ioutil} {Pkg: flag} {Pkg: compress/flate} {Pkg: context}]
10193 0 - round complete [{Pkg: compress/gzip} {Pkg: runtime/trace}]
10193 0 - round complete [{Pkg: runtime/pprof} {Pkg: testing}]
10194 0 - round complete [{Pkg: testing/internal/testdeps}]
10197 2 - end main
> exists gen_input1_copy1.go
> exists copy1_run1
> exists copy1_run2
> ! exists copy1_run3
> go test
[stdout]
testing: warning: no tests to run
PASS
ok mod 0.002s
# second round (0.128s)
> rm gen_input1_copy1.go
> gg -trace ./...
[stderr]
0 0 - start main
17 17 - start run
93 75 - initial list complete
93 0 - dep graph complete
93 0 - initial refreshDirectiveDeps complete
93 0 - initial loadMisses complete
93 0 - start work
100 6 - round complete [{Pkg: math/bits} {Pkg: unicode/utf8} {Pkg: internal/cpu} {Pkg: unsafe} {Pkg: runtime/internal/sys} {Pkg: errors} {Pkg: unicode} commandDep: copy1]
102 2 - round complete [{Pkg: internal/bytealg} {Pkg: sync/atomic} {Pkg: math} {Pkg: internal/race} {Pkg: runtime/internal/atomic}]
102 0 - round complete [{Pkg: mod [G]}]
108 5 - round complete [{Pkg: internal/testlog} {Pkg: strconv} {Pkg: runtime}]
109 0 - round complete [{Pkg: sync}]
110 1 - round complete [{Pkg: reflect} {Pkg: io} {Pkg: syscall}]
111 1 - round complete [{Pkg: internal/syscall/unix} {Pkg: time} {Pkg: sort} {Pkg: text/tabwriter} {Pkg: hash} {Pkg: bytes} {Pkg: strings} {Pkg: encoding/binary}]
113 1 - round complete [{Pkg: bufio} {Pkg: regexp/syntax} {Pkg: internal/poll} {Pkg: hash/crc32}]
113 0 - round complete [{Pkg: os} {Pkg: regexp}]
114 0 - round complete [{Pkg: path/filepath} {Pkg: runtime/debug} {Pkg: fmt}]
114 0 - round complete [{Pkg: io/ioutil} {Pkg: context} {Pkg: compress/flate} {Pkg: flag}]
114 0 - round complete [{Pkg: runtime/trace} {Pkg: compress/gzip}]
115 0 - round complete [{Pkg: testing} {Pkg: runtime/pprof}]
115 0 - round complete [{Pkg: testing/internal/testdeps}]
115 0 - end main
> exists gen_input1_copy1.go
> ! exists copy1_run3
PASS
PASS
ok myitcv.io/cmd/gg 11.242s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment