]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: add -importcfg to specify import resolution
authorRuss Cox <rsc@golang.org>
Wed, 31 May 2017 15:19:54 +0000 (11:19 -0400)
committerRuss Cox <rsc@golang.org>
Tue, 6 Jun 2017 19:49:56 +0000 (19:49 +0000)
commit4d6b08de709f0914f640e0bc738e094443687bbf
tree5da6e8a24ad52550cc32876c12d297e1fcd95e4d
parente5646b23dee5eb6f896a3eef45959aa130857988
cmd/compile: add -importcfg to specify import resolution

Allows reading -importmap options from a file instead of putting
them all on the command line, and adds the ability to specify the
file location of specific packages. In effect, -importcfg is a generalization
of and supersedes -importmap, -importsuffix, and -I.
Of course, those flags will continue to be supported,
for compatibility with other tools.

Having this flag in Go 1.9 will let us try some experiments involving
package management without needing guinea pigs to build a
custom Go toolchain.

This flag also helps with #14271 at some later point.

For #20579.

Change-Id: If005dbc2b01d8fd16cbfd3687dfbe82499f4bc56
Reviewed-on: https://go-review.googlesource.com/44850
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/compile/internal/gc/main.go