From df95e0708f6416a3f148c984464cfd417e9eccfe Mon Sep 17 00:00:00 2001 From: Jesse Szwedko Date: Sat, 3 Sep 2016 14:22:45 -0700 Subject: [PATCH] Manually set import in altsrc flag generation Otherwise `goimports` switches it to `github.com/urfave/cli` --- generate-flag-types | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/generate-flag-types b/generate-flag-types index 8567f5d..47a168b 100755 --- a/generate-flag-types +++ b/generate-flag-types @@ -202,6 +202,10 @@ def _write_altsrc_flag_types(outfile, types): _fwrite(outfile, """\ package altsrc + import ( + "gopkg.in/urfave/cli.v1" + ) + // WARNING: This file is generated! """)