ion icon indicating copy to clipboard operation
ion copied to clipboard

sst commands always fail once after homebrew update of sst

Open dmeehan1968 opened this issue 9 months ago • 5 comments

I've now experienced this problem every time I've updated the sst CLI using homebrew. Regardless of the command (install, deploy, dev commonly used), the first run after upgrade produces an error. It seems that all that is required is to repeat the command, although the error seems to eminate from a desire to check/update providers.

In this case, I pre-emptively ran sst install but that too failed (when I've tried sst deploy or sst dev the CLI emits a messages to the effect of 'installing providers' and then quits).

Attempting a re-run with --verbose doesn't show anything relevant, as the second run always seems to work.

==> Upgrading 1 outdated package:
sst/tap/sst 0.0.323 -> 0.0.326
==> Fetching sst/tap/sst
==> Downloading https://github.com/sst/ion/releases/download/v0.0.326/sst-mac-x86_64.tar.gz
==> Downloading from https://objects.githubusercontent.com/github-production-release-asset-2e65be/718823646/d47feb41-06fb-425f-8b7b-97966122f3d5?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAVCOD
#################################################################################################################################################################################################### 100.0%
==> Upgrading sst/tap/sst
  0.0.323 -> 0.0.326 
🍺  /usr/local/Cellar/sst/0.0.326: 5 files, 53.3MB, built in 1 second
==> Running `brew cleanup sst`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
Removing: /usr/local/Cellar/sst/0.0.323... (5 files, 53.3MB)
Removing: /Users/dmeehan/Library/Caches/Homebrew/sst--0.0.323.tar.gz... (20MB)
dmeehan@MacBook-Pro-M1 dashboard % sst install
×  Unexpected error occurred. Please check the logs or run with --verbose for more details.
dmeehan@MacBook-Pro-M1 dashboard % sst install
✓  Installed providers
dmeehan@MacBook-Pro-M1 dashboard % 

dmeehan1968 avatar Apr 28 '24 10:04 dmeehan1968