aws-amplify / amplify-cli

The AWS Amplify CLI is a toolchain for simplifying serverless web and mobile development.
Apache License 2.0
2.82k stars 820 forks source link

push and delete issues with Amplify CLI and Git-bash on Windows #10552

Open ZYinMD opened 2 years ago

ZYinMD commented 2 years ago

Before opening, please confirm:

How did you install the Amplify CLI?

yarn

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

v16.14.2

Amplify CLI Version

8.4.0

What operating system are you using?

Win10

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

no

Amplify Categories

hosting

Amplify Commands

publish

Describe the bug

I'm using Win10 + Git-bash + Windows Terminal

When deploying to hosting from cli, the stdout spinner looks like this:

image

Expected behavior

Same line rewrites itself in place

Reproduction steps

  1. amplify init
  2. amplify add hosting
  3. amplify publish

GraphQL schema(s)

No response

Log output

No response

Additional information

No response

ykethan commented 2 years ago

Hello @ZYinMD, thank you for reporting this. I was able to replicate the behaviour in my windows Git bash terminal. I would suggest utilizing powershell or CMD on your windows machine as a workaround.

Marking this as bug.

ykethan commented 2 years ago

Note: on amplify init the cli will fail with the following. image

if we then delete the amplify using amplify delete, it fails with the following(observe the text for delete). image

Additionally, as the deployment failed the console app could not be deleted as well. image