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

Detecting architecture when running in a dev container #850

Open
mw-stanley opened this issue Aug 2, 2023 · 1 comment
Open

Detecting architecture when running in a dev container #850

mw-stanley opened this issue Aug 2, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@mw-stanley
Copy link

mw-stanley commented Aug 2, 2023

Describe the bug
I'm running Navi in a dev container - from what I have seen, this requires navi to be installed for the host architecture rather than the container VM's architecture. When running VSCode on an M1 mac, the host architecture is arm64 but navi is installed for the aarch64 architecture as this is what's returned by the VM on uname -m. This results in navi not working.

I'm not sure if this is the result of an improper dev container setup on my side or if it's something that could be resolved by forcing navi to be installed for a certain architecture, perhaps by having an override flag in the install script?

To Reproduce

  1. Run the install script on a linux dev container running on an M1 Mac
  2. Attempt to run navi --version or any other command -> causes segfault

Expected behavior
Navi can be force installed for the $BUILDARCH when Docker builds the dev container, rather than for the VM architecture.

@mw-stanley mw-stanley added the bug Something isn't working label Aug 2, 2023
@welcome
Copy link

welcome bot commented Aug 2, 2023

Thanks for opening your first issue here! In case you're facing a bug, please update navi to the latest version first. Maybe the bug is already solved! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant