Skip to content

Misleading Curl error output on Windows, incorrect Hash generation for package#11

Open
IgalOre wants to merge 11 commits intocthorne66:masterfrom
IgalOre:master
Open

Misleading Curl error output on Windows, incorrect Hash generation for package#11
IgalOre wants to merge 11 commits intocthorne66:masterfrom
IgalOre:master

Conversation

@IgalOre
Copy link
Copy Markdown

@IgalOre IgalOre commented Aug 2, 2017

Hello,

First of all thank you for excellent package, saved and saving a lot of time.

Since all our build environment are Windows setups, i had encountered some bogus error message when package where running. After debugging find out that there setup for deviating output into "/dev/stderr", but unfortunately it does not exit on Windows machines. I added verification if running on Windows based machines and not adding that options.

Secondly after retrieving package throw Maven build, got message that generated Hash do not corresponds to one generated based on file. While debugging figured out that in on data event there toString('binary') conversion while, at least for my setup it were not needed, therefore I had removed it.

Could you please consider merging those changes, and releasing to NPMJS new version ?

Thank you in advance

Comment thread tasks/lib/index.js

artifactStream.on('data', function(chunk) {

var binaryChunk = chunk.toString('binary');
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not so sure about removing this line. It seems to be working for others (I'm assuming by lack of other bugs). I know the unit tests have run successfully. Would you be willing to test out on a linux machine as well to ensure we don't introduce a different issue?

Thank you

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alternatively this binary conversion could be activated not on Windows only. Just query same variable if on Windows platform and then activate it if not Windows.

What do you think about that ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants