google / novm

Experimental KVM-based VMM for containers, written in Go.
Apache License 2.0
1.68k stars 123 forks source link

Is "gofmt -tabs" supported in go 1.3.3 ? #3

Closed tjyang closed 9 years ago

tjyang commented 9 years ago

I had to make following change to allow gofmt in Makefile to work in gofmt 1.3.3(fedora 21).

following is the error log

[tjyang@fedora21 novm]$ !719
gofmt -l=true -w=true -tabs=false -tabwidth=4 src/novmm/*
flag provided but not defined: -tabs
usage: gofmt [flags] [path ...]
  -cpuprofile="": write cpu profile to this file
  -d=false: display diffs instead of rewriting files
  -e=false: report all errors (not just the first 10 on different lines)
  -l=false: list files whose formatting differs from gofmt's
  -r="": rewrite rule (e.g., 'a[b:len(a)] -> a[b:]')
  -s=false: simplify code
  -w=false: write result to (source) file instead of stdout
[tjyang@fedora21 novm]$ 

https://github.com/tjyang/novm/compare/google:master...master#diff-b67911656ef5d18c4ae36cb6741b7965L61

amscanne commented 9 years ago

Fixed in 89f7b444ad82364ee1e094dd959b32094797c26d.