@@ -60,18 +60,18 @@ func runGoAuth(client *http.Client, res *http.Response, url string) {
60
60
command = strings .TrimSpace (command )
61
61
words := strings .Fields (command )
62
62
if len (words ) == 0 {
63
- base .Fatalf ("GOAUTH encountered an empty command (GOAUTH=%s)" , cfg .GOAUTH )
63
+ base .Fatalf ("go: GOAUTH encountered an empty command (GOAUTH=%s)" , cfg .GOAUTH )
64
64
}
65
65
switch words [0 ] {
66
66
case "off" :
67
67
if len (goAuthCmds ) != 1 {
68
- base .Fatalf ("GOAUTH=off cannot be combined with other authentication commands (GOAUTH=%s)" , cfg .GOAUTH )
68
+ base .Fatalf ("go: GOAUTH=off cannot be combined with other authentication commands (GOAUTH=%s)" , cfg .GOAUTH )
69
69
}
70
70
return
71
71
case "netrc" :
72
72
lines , err := readNetrc ()
73
73
if err != nil {
74
- base .Fatalf ("could not parse netrc (GOAUTH=%s): %v" , cfg .GOAUTH , err )
74
+ base .Fatalf ("go: could not parse netrc (GOAUTH=%s): %v" , cfg .GOAUTH , err )
75
75
}
76
76
for _ , l := range lines {
77
77
r := http.Request {Header : make (http.Header )}
@@ -80,18 +80,18 @@ func runGoAuth(client *http.Client, res *http.Response, url string) {
80
80
}
81
81
case "git" :
82
82
if len (words ) != 2 {
83
- base .Fatalf ("GOAUTH=git dir method requires an absolute path to the git working directory" )
83
+ base .Fatalf ("go: GOAUTH=git dir method requires an absolute path to the git working directory" )
84
84
}
85
85
dir := words [1 ]
86
86
if ! filepath .IsAbs (dir ) {
87
- base .Fatalf ("GOAUTH=git dir method requires an absolute path to the git working directory, dir is not absolute" )
87
+ base .Fatalf ("go: GOAUTH=git dir method requires an absolute path to the git working directory, dir is not absolute" )
88
88
}
89
89
fs , err := os .Stat (dir )
90
90
if err != nil {
91
- base .Fatalf ("GOAUTH=git encountered an error; cannot stat %s: %v" , dir , err )
91
+ base .Fatalf ("go: GOAUTH=git encountered an error; cannot stat %s: %v" , dir , err )
92
92
}
93
93
if ! fs .IsDir () {
94
- base .Fatalf ("GOAUTH=git dir method requires an absolute path to the git working directory, dir is not a directory" )
94
+ base .Fatalf ("go: GOAUTH=git dir method requires an absolute path to the git working directory, dir is not a directory" )
95
95
}
96
96
97
97
if url == "" {
0 commit comments