Open BenCoffeed opened 4 years ago
I think the real issue may be that this line still references the old version, 0.48.0
.
Hmm.. actually, not as simple as that.. there are no assets in this release here: https://github.com/awslabs/aws-sam-cli/releases/tag/v0.49.0
I was able to install the old version, 0.48.0 with the following:
cd /usr/local/Homebrew/Library/Taps/aws/homebrew-tap
git reset --hard 9ddfdddbe1fed52940f9561ed04618682d5b24b2
brew install aws-sam-cli
Your next brew update
should undo this.
My brew was doing an autoupdate, which rolled back the reset.
==> Auto-updated Homebrew!
Updated 1 tap (aws/tap).
No changes to formulae.
==> Installing aws-sam-cli from aws/tap
...
It works if I prevent the auto-update by setting HOMEBREW_NO_AUTO_UPDATE=1
i.e.,
cd /usr/local/Homebrew/Library/Taps/aws/homebrew-tap
git reset --hard 9ddfdddbe1fed52940f9561ed04618682d5b24b2
HOMEBREW_NO_AUTO_UPDATE=1 brew install aws-sam-cli
It works if I prevent the auto-update by setting
HOMEBREW_NO_AUTO_UPDATE=1
:+1: I already had that set in my ~/.bash_profile
. I don't like it auto-updating. :)
This is happening again:
==> Upgrading aws/tap/aws-sam-cli 1.5.0 -> 1.6.2
==> Downloading https://github.com/aws/aws-sam-cli/releases/download/v1.6.0//aws-sam-cli-1.6.2.sierr
##O#- #
curl: (22) The requested URL returned error: 404 Not Found
Error: Failed to download resource "aws-sam-cli"
Download failed: https://github.com/aws/aws-sam-cli/releases/download/v1.6.0//aws-sam-cli-1.6.2.sierra.bottle.tar.gz
Warning: Bottle installation failed: building from source.
I noticed it last week w/v1.5.0//
as well... the extra /
after the version before aws-sam-cli-...
is the problem
Environment
brew version: Homebrew 2.2.16 OS version: MacOS 10.15.5 Current aws-sam-cli version:
How to repeat
brew upgrade aws/tap/aws-sam-cli
Expected Results
Install aws-sam-cli 0.49.0
Received Results
This isn't a huge deal locally, but I'm using aws-sam-cli in my CI scripts and it's causing build failures.
docker_image:
circleci/php:7.4-cli