brew bundle fails during bootstrap
ktavabi opened this issue ยท 2 comments
Happy to report that installation on recent setup went off without a hitch! ๐
But I ran into an issue with brew bundle
during bootstrapping here because brew is not available in PATH
for the current shell session. I worked around it by adding source ~/.zshrc
here. However, according to instructions for Homebrew after installation we should add brew
to PATH
by (a) echo eval "$(/opt/homebrew/bin/brew shellenv)" >> /~.zprofile
and (b) eval "$(/opt/homebrew/bin/brew shellenv)"
. Option b here should fix this issue irrespective of whether /~.zprofile
exists.
Happy to submit PR as soon as I am setup.
We just probably need to add .zprofile
file under home
directory, so it can be linked automatically upon installation.
My understanding is that not everyone uses a .zprofile
but as it turns out, just injecting brew
into the path via eval "$(/opt/homebrew/bin/brew shellenv)"
at runtime fixes this issue. I had a chance to test this on a new build attempt. I haven't been able to open a PR because of GH permissions.