Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Amplify uninstall uninstalls package even when answered No. #13314

Closed
2 tasks done
krosiek opened this issue Oct 6, 2023 · 4 comments
Closed
2 tasks done

Amplify uninstall uninstalls package even when answered No. #13314

krosiek opened this issue Oct 6, 2023 · 4 comments
Labels
bug Something isn't working p2 platform Issues tied to the general CLI platform wontfix This will not be worked on

Comments

@krosiek
Copy link

krosiek commented Oct 6, 2023

How did you install the Amplify CLI?

npm

If applicable, what version of Node.js are you using?

v20.7.0

Amplify CLI Version

12.6.0

What operating system are you using?

Mac

Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.

No

Describe the bug

$:amplify uninstall                                                                                                                                
? Are you sure you want to uninstall the Amplify CLI? No
Not removing the Amplify CLI.


removed 26 packages in 175ms
$:amplify uninstall                                                                                                                              
zsh: command not found: amplify

Expected behavior

When I answer No to the question Are you sure you want to uninstall the Amplify CLI? I expect the package not to be uninstalled.

Reproduction steps

npm install -g @aws-amplify/[email protected]
amplify uninstall
No

Project Identifier

No response

Log output

# Put your logs below this line


Additional information

No response

Before submitting, please confirm:

  • I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
  • I have removed any sensitive information from my code snippets and submission.
@krosiek krosiek added the pending-triage Issue is pending triage label Oct 6, 2023
@ykethan
Copy link
Member

ykethan commented Oct 6, 2023

Hey @krosiek, thank you for reaching out. I was able to reproduce the issue, marking as bug.

image

@ykethan ykethan added bug Something isn't working platform Issues tied to the general CLI platform and removed pending-triage Issue is pending triage labels Oct 6, 2023
@ykethan
Copy link
Member

ykethan commented Oct 6, 2023

Note: tested in CLI versions 12.0.1, 11.0.1 and 10.0.0, observed similar behavior.

@ykethan ykethan added the p1 label Oct 11, 2023
@joebuono joebuono self-assigned this Oct 12, 2023
@ykethan ykethan added p2 and removed p1 labels Feb 13, 2024
@josefaidt
Copy link
Contributor

Closing as a wontfix in favor of prioritizing Amplify (Gen 2) CLI interactions. While it is an undesirable/unexpected behavior, this functionality does not impact production workloads.

Note when using npm to manage the Gen 1 CLI package @aws-amplify/cli, removing with npm uninstall -g @aws-amplify/cli will also invoke amplify uninstall and remove the local assets.

@josefaidt josefaidt closed this as not planned Won't fix, can't repro, duplicate, stale Feb 14, 2024
@josefaidt josefaidt added the wontfix This will not be worked on label Feb 14, 2024
Copy link

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working p2 platform Issues tied to the general CLI platform wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

4 participants