aws / copilot-cli

The AWS Copilot CLI is a tool for developers to build, release and operate production ready containerized applications on AWS App Runner or Amazon ECS on AWS Fargate.
https://aws.github.io/copilot-cli/
Apache License 2.0
3.53k stars 417 forks source link

[Bug]: Cannot downgrade from version 1.34.0 to version 1.34.0 #5959

Open ssyberg opened 1 month ago

ssyberg commented 1 month ago

Description:

I'm not really sure what to say about this one...

% copilot svc deploy  
Name: backend
Environment: staging
It looks like you are trying to use an earlier version of Copilot to downgrade `workload backend` lastly updated by a newer version of Copilot.
- We recommend upgrade your local Copilot CLI version and run this command again.
- Alternatively, you can run with `--allow-downgrade` to override. However, this can cause unsuccessful deployment. Please use with caution!
✘ cannot downgrade workload "backend" (currently in version v1.34.0) to version 1.34.0
% copilot -v
copilot version: 1.34.0
NickFitz commented 1 week ago

I also encountered this issue after upgrading with Homebrew. The version installed showed 1.34.0 (without the v at the start). I uninstalled the Homebrew version and followed the instructions for installing the binary, and that has the v in the output of copilot --version and runs successfully.