I updated my macOS from Catalina to Monterey 12.2 a few days ago, and am no longer able to access Heroku from the command line (using zsh). Normally, running heroku login
from the terminal will open Heroku in a web browser, and after logging in, I am able to run subsequent Heroku commands from the CLI.
Here's the input and error message I get:
% heroku login
fatal error: runtime: bsdthread_register error
runtime stack:
runtime.throw(0x2d5619, 0x21)
/usr/local/go/src/runtime/panic.go:566 +0x95 fp=0x7ff7bfeff6d0 sp=0x7ff7bfeff6b0
runtime.goenvs()
/usr/local/go/src/runtime/os_darwin.go:88 +0xa0 fp=0x7ff7bfeff700 sp=0x7ff7bfeff6d0
runtime.schedinit()
/usr/local/go/src/runtime/proc.go:450 +0x9c fp=0x7ff7bfeff740 sp=0x7ff7bfeff700
runtime.rt0_go(0x7ff7bfeff778, 0x2, 0x7ff7bfeff778, 0x0, 0x1000, 0x2, 0x7ff7bfeff948, 0x7ff7bfeff978, 0x0, 0x7ff7bfeff97e, ...)
/usr/local/go/src/runtime/asm_amd64.s:145 +0x14f fp=0x7ff7bfeff748 sp=0x7ff7bfeff740
On first search of this error online, it seemed like maybe I needed to update Go, so I downloaded the latest version, and added it to my path like so:
% mkdir $HOME/go
% cd $HOME/go
% mkdir bin pkg src
and added the following lines to my .zshrc file:
export GOPATH=$HOME/go
PATH=$PATH:$GOPATH/bin
(I then ran source .zshrc
from the home directory).
This appeared to successfully update Go, because go version
returns go1.17.6 darwin/amd64
.
I ran heroku login
again and got the exact same error. The same error occurs for any heroku command. Any clues on what might be going wrong?