From 2adaa936c2822ebf3916c8c5a157a7bcfeb7a791 Mon Sep 17 00:00:00 2001 From: Brian Tobin Date: Mon, 3 Nov 2014 17:10:16 -0800 Subject: [PATCH] Remove deprecated golang args If you try to autoformat a file and you're using golang 1.3.3, you get this exception: `flag provided but not defined: -tabwidth` This issue describes that tabwidth and tabs are now removed from goftm: https://code.google.com/p/go/issues/detail?id=7101 --- Support/gomate.rb | 6 ------ 1 file changed, 6 deletions(-) diff --git a/Support/gomate.rb b/Support/gomate.rb index 6c2b5a2..7a8a7cd 100755 --- a/Support/gomate.rb +++ b/Support/gomate.rb @@ -77,12 +77,6 @@ def Go::gofmt args = [] args.push(gofmt_cmd) - args.push("-tabwidth=#{ENV['TM_TAB_SIZE']}") - if ENV['TM_SOFT_TABS'] && ENV['TM_SOFT_TABS'] == 'YES' - args.push('-tabs=false') - else - args.push('-tabs=true') - end args.push(ENV['TM_FILEPATH']) out, err = TextMate::Process.run(*args)