-
Notifications
You must be signed in to change notification settings - Fork 17.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmd/go/internal/get: avoid panic in metaImportsForPrefix if web.Get f…
…ails Fixes #34049 Change-Id: I817b83ee2d0ca6d01ec64998f14bc4f32e365d66 Reviewed-on: https://go-review.googlesource.com/c/go/+/193259 Run-TryBot: Bryan C. Mills <[email protected]> TryBot-Result: Gobot Gobot <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]>
- Loading branch information
Bryan C. Mills
committed
Sep 4, 2019
1 parent
d9a3d90
commit 6719d88
Showing
3 changed files
with
17 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# golang.org/issue/29591: 'go get' was following plain-HTTP redirects even without -insecure. | ||
|
||
[!net] skip | ||
[!exec:git] skip | ||
|
||
env GO111MODULE=on | ||
env GOPROXY=direct | ||
env GOSUMDB=off | ||
|
||
! go get -d vcs-test.golang.org/insecure/go/insecure | ||
stderr 'redirected .* to insecure URL' | ||
|
||
go get -d -insecure vcs-test.golang.org/insecure/go/insecure |