-
Notifications
You must be signed in to change notification settings - Fork 17.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmd/go: port TestIssue16471 to a script test and add verbose logging
For #50471 Change-Id: I082c1f96113a3228f2ef423a04eaa9fbaa6c7522 Reviewed-on: https://go-review.googlesource.com/c/go/+/376359 Reviewed-by: Robert Findley <[email protected]> Auto-Submit: Bryan Mills <[email protected]> Run-TryBot: Bryan Mills <[email protected]> TryBot-Result: Gopher Robot <[email protected]>
- Loading branch information
Showing
2 changed files
with
22 additions
and
15 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
[!net] skip | ||
[!exec:git] skip | ||
|
||
env GO111MODULE=off | ||
|
||
cd rsc.io/go-get-issue-10952 | ||
|
||
exec git init | ||
exec git add foo.go | ||
exec git config user.name Gopher | ||
exec git config user.email [email protected] | ||
exec git commit -a -m 'initial commit' | ||
exec git remote add origin https://github.com/golang/go-get-issue-10952 | ||
|
||
exec git status | ||
|
||
! go get -x -u rsc.io/go-get-issue-10952 | ||
stderr '^package rsc.io/go-get-issue-10952: rsc\.io/go-get-issue-10952 is a custom import path for https://github.com/rsc/go-get-issue-10952, but .* is checked out from https://github.com/golang/go-get-issue-10952$' | ||
|
||
-- rsc.io/go-get-issue-10952/foo.go -- | ||
// Junk package to test go get. | ||
package foo |