Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Move unsupported platform failure from os.name to separate method. #179

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

deepy
Copy link
Member

@deepy deepy commented Jul 4, 2021

Previously we've accidentally depended on the isWindows check to see if we're on a supported platform or not, this had the unfortunate side-effect that even with download = false we triggered the error()

I've moved this to PlatformHelper.failIfUnsupportedPlatform()

Previously we've accidentally depended on the isWindows check
to see if we're on a supported platform or not, this had
the unfortunate side-effect that even with `download = false`
we triggered the error(). See #178
name.contains("sunos") -> "sunos"
else -> error("Unsupported OS: $name")
else -> "unsupported"
Copy link
Member Author

Choose a reason for hiding this comment

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

I don't really like this since if we're extending this or someone uses their own distribution URL which does have binaries it's going to fail, and we're providing no way to override it.

@deepy
Copy link
Member Author

deepy commented Jul 4, 2021

Hmm, this wasn't enough, there's still issues

Could not determine the dependencies of task ':nodeSetup'.
> Failed to query the value of task ':nodeSetup' property 'nodeArchiveFile'.
   > Could not resolve all files for configuration ':detachedConfiguration1'.
      > Could not find node-14.15.4-unsupported-x64.tar.gz (org.nodejs:node:14.15.4).
        Searched in the following locations:
            https://nodejs.org/dist/v14.15.4/node-v14.15.4-unsupported-x64.tar.gz

This is not ideal since even if `download = true` there could
very well be builds that work fine, especially if you're
excluding the tasks from the node plugin.

But right now there's harder to diagnose errors appearing
further down the line and this should make for a more
stable build, at least an overall more stable build.
@deepy
Copy link
Member Author

deepy commented Jul 16, 2022

this work isn't abandoned, but currently it looks like it might be easier to solve in a different way

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.

Support BSD and platforms without official node.js binaries (with download = false)
1 participant