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

Config assumes M1 Mac #4

Open
JLLeitschuh opened this issue Jun 7, 2022 · 3 comments
Open

Config assumes M1 Mac #4

JLLeitschuh opened this issue Jun 7, 2022 · 3 comments

Comments

@JLLeitschuh
Copy link
Contributor

If you attempt to install rosetta on a non-M1 mac, the config fails.

# Install Rosetta 2
softwareupdate --install-rosetta --agree-to-license

Additionally, this line also assumes an M1 mac book pro: eval "$(/opt/homebrew/bin/brew shellenv)"

# Export brew environment variables
eval "$(/opt/homebrew/bin/brew shellenv)"

@guylabs
Copy link
Owner

guylabs commented Jun 7, 2022

Yes, it does not support X86 architectures anymore. This config is my personal config as a reference and I'm keeping it up to date with the hardware I have. You'd need to fork from around here 45614f6 as there the config started to support arm64 architecture.

Ok for you to close the issue as not planned ?

@JLLeitschuh
Copy link
Contributor Author

The only two locations currently causing issues are the locations listed above. Other places in the code seem to attempt to mitigate this. Could something similar be used?

if test ! "$(hash brew)"; then
if isArmArchitecture; then
eval "$(/opt/homebrew/bin/brew shellenv)"
else
eval "$(brew --prefix)/bin/brew shellenv"
fi
fi

@guylabs
Copy link
Owner

guylabs commented Jun 8, 2022

Yes we can use that. Feel free to create a pull request with your state what works on x86. That would be great!

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

2 participants