bazooka-ci / bazooka

Continuous Integration and Continuous Deployment Server
http://docs.bazooka-ci.io/
MIT License
60 stars 5 forks source link

Remove usage of bufio.Scanner #153

Closed julienvey closed 9 years ago

julienvey commented 9 years ago

We should replace bufio.Scanner with bufio.Reader

We have the following error with some projects

There was an error with the scanner in attached container bufio.Scanner: token too long

For instance, with a maven project, it fails because the log of a download looks like

Downloading: http://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-utils/3.0.8/plexus-utils-3.0.8.jar
3611/19 KB   
5/19 KB   
9/19 KB   
11/19 KB   
15/19 KB   
19/19 KB   
19/19 KB   4/227 KB   
19/19 KB   8/227 KB   
19/19 KB   12/227 KB   
19/19 KB   14/227 KB   
4/131 KB   19/19 KB   14/227 KB   
8/131 KB   19/19 KB   14/227 KB   
12/131 KB   19/19 KB   14/227 KB   
14/131 KB   19/19 KB   14/227 KB   
14/131 KB   1/25 KB   19/19 KB   14/227 KB   
14/131 KB   5/25 KB   19/19 KB   14/227 KB   
14/131 KB   9/25 KB   19/19 KB   14/227 KB   
14/131 KB   13/25 KB   19/19 KB   14/227 KB   
14/131 KB   14/25 KB   19/19 KB   14/227 KB   
1/350 KB   14/131 KB   14/25 KB   19/19 KB   14/227 KB   
5/350 KB   14/131 KB   14/25 KB   19/19 KB   14/227 KB   
9/350 KB   14/131 KB   14/25 KB   19/19 KB   14/227 KB   
9/350 KB   14/131 KB   14/25 KB   19/19 KB   18/227 KB   
13/350 KB   14/131 KB   14/25 KB   19/19 KB   22/227 KB   
13/350 KB   14/131 KB   14/25 KB   19/19 KB   26/227 KB   
13/350 KB   14/131 KB   14/25 KB   19/19 KB   30/227 KB   
13/350 KB   14/131 KB   14/25 KB   19/19 KB   32/227 KB   
13/350 KB   14/131 KB   14/25 KB   19/19 KB   36/227 KB   
13/350 KB   14/131 KB   14/25 KB   19/19 KB   36/227 KB   
13/350 KB   18/131 KB   14/25 KB   19/19 KB   36/227 KB   
14/350 KB   18/131 KB   14/25 KB   19/19 KB   36/227 KB   
14/350 KB   18/131 KB   14/25 KB   19/19 KB   40/227 KB   
14/350 KB   18/131 KB   14/25 KB   19/19 KB   42/227 KB