Skip to content

[Feature Request]: Add an option to force using prebuilt binaries #49

@ccheraa

Description

@ccheraa

I don't know GO lang but I tried to read the code, and from what I understood is that the value of hasPrebuildInstall will be true if there is a prebuild-install dependency in package.json:

for name := range info.Dependencies {
if name == "prebuild-install" {
jsonWriter.WriteMore()
jsonWriter.WriteObjectField("hasPrebuildInstall")
jsonWriter.WriteBool(true)
break
}
}

Then if the value hasPrebuildInstall is not true, the function installUsingPrebuild will not try to download the prebuilt binary.

if !dependency.HasPrebuildInstall {
return nil, nil
}

It would be nice if there was an option to somehow pass an array of modules to installUsingPrebuild and the function will try to use their prebuilt binaries regardless of the value of hasPrebuildInstall (regardless of whether they use prebuild-install or no)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions