@@ -133,8 +133,8 @@ type Bazel interface {
133133 SetStartupArgs ([]string )
134134 WriteToStderr (v bool )
135135 WriteToStdout (v bool )
136- Info () (map [string ]string , error )
137136 Query (args ... string ) (* blaze_query.QueryResult , error )
137+ Info () (map [string ]string , * bytes.Buffer , error )
138138 CQuery (args ... string ) (* analysis.CqueryResult , error )
139139 Build (args ... string ) (* bytes.Buffer , error )
140140 Norun (args ... string ) (* bytes.Buffer , error )
@@ -235,10 +235,10 @@ func (b *bazel) newCommand(command string, args ...string) (*bytes.Buffer, *byte
235235// 'bazel help info-keys'.
236236//
237237// res, err := b.Info()
238- func (b * bazel ) Info () (map [string ]string , error ) {
238+ func (b * bazel ) Info () (map [string ]string , * bytes. Buffer , error ) {
239239 b .WriteToStderr (false )
240240 b .WriteToStdout (false )
241- stdoutBuffer , _ := b .newCommand ("info" )
241+ stdoutBuffer , stderrBuffer := b .newCommand ("info" )
242242
243243 // This gofunction only prints if 'bazel info' takes longer than 8 seconds
244244 doneCh := make (chan struct {})
@@ -254,9 +254,10 @@ func (b *bazel) Info() (map[string]string, error) {
254254
255255 err := b .cmd .Run ()
256256 if err != nil {
257- return nil , err
257+ return nil , nil , err
258258 }
259- return b .processInfo (stdoutBuffer .String ())
259+ result , err := b .processInfo (stdoutBuffer .String ())
260+ return result , stderrBuffer , err
260261}
261262
262263func (b * bazel ) processInfo (info string ) (map [string ]string , error ) {
0 commit comments