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

Install Specific Architecture (arm / x64) #137

Open
MatteoGauthier opened this issue Jun 26, 2023 · 9 comments
Open

Install Specific Architecture (arm / x64) #137

MatteoGauthier opened this issue Jun 26, 2023 · 9 comments

Comments

@MatteoGauthier
Copy link

MatteoGauthier commented Jun 26, 2023

Hey, proto seems to be a really good solution for multiple environments developments. I didn't see an option to choose the architecture of the installed version in the documentation. Is this feature planned?

Bye !

@milesj
Copy link
Contributor

milesj commented Jun 26, 2023

@MatteoGauthier It's not planned at all. The arch is derived from the current machine. What's the use case?

@MatteoGauthier
Copy link
Author

@milesj As a MacBook user, new ARM architecture have caused a lot of issue with nodejs for example. Packages that use native bindings might have some issues on non x64 arch, like node-sass, node-gyp, chokidar, next, prisma, etc… For library authors, choosing architecture can be useful too, like for testing in multiple scenarios. I'm currently looking for a good toolchain manager, that could install multiple versions of node, zig, or python with the ability to choose the CPU architecture. I tried nvm, n, fnm, volta But none of these tools allow installing the same version with several archs.

@ImBIOS
Copy link
Contributor

ImBIOS commented Nov 22, 2023

@MatteoGauthier I didn't get the benefit of doing this, I'm using ARM M1 and no problem with the architecture.

@oddcelot
Copy link

Would it be possible to add aarch64-unknown-linux-gnu as compilation target for supporting ARM64 Linux?
I tried adding proto to an image for a dev container.

(no idea really, but would it suffice to add this here?)

@milesj
Copy link
Contributor

milesj commented Nov 24, 2023

We use cargo-dist to build our binaries and it doesn't support arm64 yet. https://github.com/axodotdev/cargo-dist

@ImBIOS
Copy link
Contributor

ImBIOS commented Nov 26, 2023

@oddcelot
Copy link

oddcelot commented Dec 8, 2023

Thanks for the update @ImBIOS and @milesj for moving things along with axodotdev/cargo-dist#614
Much appreciated 🙌
So this issue would be resolved then with upgrading cargo-dist to 0.6.0 once released, right?

@milesj
Copy link
Contributor

milesj commented Dec 8, 2023

It'll solve the arm64 problem, but the original issue is still something to be figured out.

@milesj
Copy link
Contributor

milesj commented Dec 11, 2023

Linux arm64 if now available.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

4 participants