From e3cc6309ea11e6d44c6b59c6793ce79e0b1416c1 Mon Sep 17 00:00:00 2001 From: James Shubin Date: Sun, 5 May 2019 08:16:03 -0400 Subject: [PATCH] lib: Fix gofmt regression in golang 1.11.x Golang has many exceptions to its "compatibility promise", including the gofmt output. The fact that they change it arbitrarily for things like this is absurd. (Remove the patch and run `gofmt` to see for yourself.) This change re-worked the comment, since include the `gofmt` suggested line break makes absolutely no sense, and is not convenient. --- lib/cli.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/cli.go b/lib/cli.go index 1d785733..ecdeb425 100644 --- a/lib/cli.go +++ b/lib/cli.go @@ -25,8 +25,7 @@ import ( "github.com/purpleidea/mgmt/bindata" "github.com/purpleidea/mgmt/gapi" - // these imports are so that GAPIs register themselves in init() - _ "github.com/purpleidea/mgmt/lang" + _ "github.com/purpleidea/mgmt/lang" // import so the GAPI registers _ "github.com/purpleidea/mgmt/langpuppet" _ "github.com/purpleidea/mgmt/puppet" _ "github.com/purpleidea/mgmt/yamlgraph"