Skip to content

Fallback to architecture if the binary is missing? #2

@paambaati

Description

@paambaati

I'm trying to re-purpose this library to do something slightly different – to be able to add any arbitrary Go binary to my Node.js project, so I can run it as part of my scripts.

Example –

I'm trying to use the very popular https://github.com/zricethezav/gitleaks project in my Node.js project. Because gitleaks does not have an npm package, I'm trying to use go-npm to simply download the binary for me as part of the install step, so I can then run it with a simple package.json script.

The problem here is, I'm running an M1 MacBook, and it's architecture is arm64. However, the gitleaks project has not published an arm64 build (yet).

What would be the best solution here?

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