cmd/golint: only enforce import path for go1.12+

Change-Id: I7831597c0e99f3b1bf54357f13c69b5cf97ee3d4
Reviewed-on: https://go-review.googlesource.com/c/141657
Reviewed-by: Filippo Valsorda <filippo@golang.org>
Reviewed-by: Andrew Bonventre <andybons@golang.org>
diff --git a/golint/golint.go b/golint/golint.go
index d53bce3..ac024b6 100644
--- a/golint/golint.go
+++ b/golint/golint.go
@@ -5,7 +5,7 @@
 // https://developers.google.com/open-source/licenses/bsd.
 
 // golint lints the Go source files named on its command line.
-package main // import "golang.org/x/lint/golint"
+package main
 
 import (
 	"flag"
diff --git a/golint/importcomment.go b/golint/importcomment.go
new file mode 100644
index 0000000..d5b32f7
--- /dev/null
+++ b/golint/importcomment.go
@@ -0,0 +1,13 @@
+// Copyright (c) 2018 The Go Authors. All rights reserved.
+//
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file or at
+// https://developers.google.com/open-source/licenses/bsd.
+
+// +build go1.12
+
+// Require use of the correct import path only for Go 1.12+ users, so
+// any breakages coincide with people updating their CI configs or
+// whatnot.
+
+package main // import "golang.org/x/lint/golint"