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

Fallback to architecture if the binary is missing? #2

Open
paambaati opened this issue Oct 1, 2021 · 0 comments
Open

Fallback to architecture if the binary is missing? #2

paambaati opened this issue Oct 1, 2021 · 0 comments

Comments

@paambaati
Copy link

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?

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

No branches or pull requests

1 participant