constabulary / gb

gb, the project based build tool for Go
https://getgb.io/
MIT License
2.15k stars 148 forks source link

cmd/gb: add -d to enable debug #720

Closed davecheney closed 7 years ago

davecheney commented 7 years ago

Fixes #710

Setting an environment variable on windows is hard, so add a more conventional -d flag to enable debug logging.

The old DEBUG=. trick works as -d defaults to os.Getenv("DEBUG") != ""

codecov-io commented 7 years ago

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@e72b446). Click here to learn what that means. The diff coverage is 27.77%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master     #720   +/-   ##
=========================================
  Coverage          ?   52.54%           
=========================================
  Files             ?       42           
  Lines             ?     3163           
  Branches          ?        0           
=========================================
  Hits              ?     1662           
  Misses            ?     1357           
  Partials          ?      144
Impacted Files Coverage Δ
test/gotest.go 39.39% <ø> (ø)
cmd/gb/internal/match/match.go 86.48% <ø> (ø)
cmd/gb/testflag.go 97.59% <ø> (ø)
cmd/gb/test.go 5.26% <ø> (ø)
cmd/gb/main.go 8.65% <0%> (ø)
cmd/cmd.go 0% <0%> (ø)
build.go 83.11% <100%> (ø)
test/test.go 72.48% <100%> (ø)
package.go 73.43% <16.66%> (ø)
context.go 72.83% <20%> (ø)
... and 1 more

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update e72b446...52d747b. Read the comment docs.