Skip to content
This repository has been archived by the owner on May 24, 2022. It is now read-only.

chore: Allow fetching cross-platform parity-ethereum #501

Merged
merged 3 commits into from
Apr 9, 2019

Conversation

amaury1093
Copy link
Collaborator

On gitlab we build the Windows binary on Linux: we need to fetch the windows parity-ethereum from linux.

yarn fetch-parity --win or --mac or --linux

Copy link
Collaborator

@Tbaut Tbaut left a comment

Choose a reason for hiding this comment

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

lgtm

if (stderr) throw new Error(stderr);
return stdout.match(/v\d+\.\d+\.\d+/)[0];
})
.catch(error => console.warn(error.message));
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe in the future add a note to explain that we're catching the error so that the process still exits with 0 when fetching&packaging the windows binary on linux (ci) (then, the binary version cannot be checked)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

+1 also remove the annoying "command failed" messages

@@ -48,6 +57,11 @@ if (foundPath) {
// Bundled Parity was found, we check if the version matches the minimum requirements
getBinaryVersion(foundPath)
.then(version => {
if (!version) {
Copy link
Contributor

@axelchalon axelchalon Apr 9, 2019

Choose a reason for hiding this comment

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

same, in the future it can use some more commenting, otherwise the underlying logic isn't very clear

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants