1
0
mirror of https://github.com/golang/go synced 2024-11-05 18:26:10 -07:00
go/cmd/bundle
Brad Fitzpatrick d0ca3933b7 cmd/bundle: change the behavior of the -underscore flag
It used to rewrite golang.org/x/* imports to golang_org/x/*.

But https://golang.org/cl/147443 renamed golang_org/x to internal/x,
which broke the ability to run "go generate" in net/http, which runs
this command.

Given that net/http (and Go itself) is the only caller of cmd/bundle
or the -underscore flag, repurpose it to instead rewrite the
golang.org/x imports to internal/x, like CL 147443. But we keep its
name out of laziness and to minimize the number of cross-repo changes
needed.

Change-Id: I310ce8b45812a26c8b3522eaf407fffff138b1be
Reviewed-on: https://go-review.googlesource.com/c/152097
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
2018-12-01 03:58:26 +00:00
..
testdata cmd/bundle: include non-associated comments 2017-07-07 17:27:36 +00:00
.gitignore x/tools/cmd/bundle: include comments inside functions 2017-06-09 02:56:03 +00:00
main_test.go cmd/bundle: include non-associated comments 2017-07-07 17:27:36 +00:00
main.go cmd/bundle: change the behavior of the -underscore flag 2018-12-01 03:58:26 +00:00