1
0
mirror of https://github.com/golang/go synced 2024-10-01 07:38:32 -06:00
go/imports
Ian Cottrell cb89afadce imports: drop anything after a non identifier rune in package names
A package name cannot contain a '.' anyway, so this is a mostly likely
internal package name in the presence of a '.' in the import path.
This stops goimports from adding a local alias in places where it is not
needed, for instance in gopkg.in conventions.

Fixes golang/go#29556

Change-Id: I0ab11f2852d7f1dae14457995692760077201c8e
Reviewed-on: https://go-review.googlesource.com/c/157357
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Heschi Kreinick <heschi@google.com>
2019-01-30 18:50:28 +00:00
..
testdata/mod imports: stop using go/packages for modules 2019-01-22 20:29:12 +00:00
fix_test.go imports: drop anything after a non identifier rune in package names 2019-01-30 18:50:28 +00:00
fix.go imports: drop anything after a non identifier rune in package names 2019-01-30 18:50:28 +00:00
imports.go imports: remove globals, stop using build.Default 2019-01-18 19:33:59 +00:00
mkindex.go go.tools/imports: move goimports from github to go.tools. 2013-12-17 21:21:03 -05:00
mkstdlib.go imports: update zstdlib to Go 1.12 2019-01-30 01:50:43 +00:00
mod_test.go imports: stop using go/packages for modules 2019-01-22 20:29:12 +00:00
mod.go imports: stop using go/packages for modules 2019-01-22 20:29:12 +00:00
sortimports.go Revert "imports: support repairing import grouping/ordering" 2018-10-24 17:12:08 +00:00
zstdlib.go imports: update zstdlib to Go 1.12 2019-01-30 01:50:43 +00:00