robertgzr / porcelain

a git status parser
MIT License
34 stars 7 forks source link

flag provided but not defined: -test.timeout #8

Closed stevegt closed 3 years ago

stevegt commented 3 years ago

This is caused by calling flag.Parse in init() in modern versions of Go -- see https://github.com/karlseguin/expect/issues/3 and those issues it links to.

$ go test
flag provided but not defined: -test.timeout
Usage of /tmp/go-build290440972/b001/porcelain.test:
  -bash
        escape fmt output for bash
  -debug
        write logs to file (/tmp/porcelain.log)
  -fmt
        print formatted output (default) (default true)
  -logtostderr
        write logs to stderr
  -no-color
        print formatted output without color codes
  -path string
        show output for path instead of the working directory
  -tmux
        escape fmt output for tmux
  -version
        print version and exit
  -zsh
        escape fmt output for zsh
exit status 2
FAIL    github.com/robertgzr/porcelain  0.001s