empiricalci / emp

:microscope: Empirical CLI
https://empiricalci.com
MIT License
42 stars 7 forks source link

Build image output is failing due to parse on OS X #93

Closed alantrrs closed 8 years ago

alantrrs commented 8 years ago
BUILD:
{"stream":"Step 1 : FROM python:2.7\n"}
{"stream":" ---\u003e f9a9ac5dcfb8\n"}{"stream":"Step 2 : RUN pip install numpy\n"}
undefined:2
{"stream":"Step 2 : RUN pip install numpy\n"}
^

SyntaxError: Unexpected token {
    at Object.parse (native)
    at IncomingMessage.<anonymous> (/Users/empirical/workspace/emp/lib/build-image.js:16:30)
    at emitOne (events.js:77:13)
    at IncomingMessage.emit (events.js:169:7)
    at readableAddChunk (_stream_readable.js:153:18)
    at IncomingMessage.Readable.push (_stream_readable.js:111:10)
    at HTTPParser.parserOnBody (_http_common.js:127:22)
    at Socket.socketOnData (_http_client.js:322:20)
    at emitOne (events.js:77:13)
    at Socket.emit (events.js:169:7)

Looks like 2 json lines are being merged into one, which makes it invalid json