pivotal / workstation-setup

Scripts to automatically set up a machine for development the "Tanzu Labs" way
https://github.com/pivotal/workstation-setup
MIT License
325 stars 240 forks source link

Installation fails on fresh M1 Mac running Monterey - homebrew #311

Closed joemoore closed 2 years ago

joemoore commented 2 years ago

Note: have not verified if this is a M1 issue, Monterey issue, both, or neither.

Steps:

  1. Have a brand new M1 Mac running Monterey
  2. Follow installation instructions in README
  3. Expected: everything installs
  4. Actual: fails installing homebrew
==> Next steps:
- Run these two commands in your terminal to add Homebrew to your PATH:
    echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/tanzulabs/.zprofile
    eval "$(/opt/homebrew/bin/brew shellenv)"
- Run brew help to get started
- Further documentation:
    https://docs.brew.sh

Ensuring you have the latest Homebrew...
./scripts/common/homebrew.sh: line 12: brew: command not found
joemoore commented 2 years ago

Manually followed the instructions above to fix the issue:

echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/tanzulabs/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"

Suggest adding support to detect need for this and have it automatically executed.

joemoore commented 2 years ago

attempting fix with #313

joemoore commented 2 years ago

Fixed.