-
Notifications
You must be signed in to change notification settings - Fork 820
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
Why do we need projectPath in amplify/.config/local-env-info.json
? it cause an issue if the project folder is renamed
#13537
Comments
Hey @ArsSirek, thank you for reaching out. To update the project info, we can run |
Hi @ykethan! thank you for your response and for looking into this issue! You know better what labels suite the issue best, as people can put different meaning to the same words. But It took days to debug the issue for me, so I personally I would still think that this issue is rather a bug then a feature request, because one don't expect to break a project by renaming the folder. It is a totally unexpected side effect and the error messages are not helping to find the direction at all. The command to fix the path is cool, but you still need to somehow know ahead of time that changing the folder path cause problems for amplify cli |
I guess I should have added initial error logs as well, so people with similar errors will be able to find this issue and the solution. Error on
Errors on
|
How did you install the Amplify CLI?
No response
If applicable, what version of Node.js are you using?
No response
Amplify CLI Version
12.10.1
What operating system are you using?
ubuntu
Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.
No
Describe the bug
I renamed the folder of the project, and the command like
amplify update auth
started to ignore all existing parametersExpected behavior
The rename (or move) of the folder that contains the project has no side effect on the project.
I think we can use only relative paths to find the parameter files just like we find the
amplify-meta.json
the issue is caused by this lines if we instead relay on
search project root
like we do here that will resolve this kind of errorsReproduction steps
amplify add auth
amplify update auth
And you won't see any of the values you configured on
amplify add auth
the cli will suggest new names for cognito user pool and identity poolProject Identifier
No response
Log output
No response
Additional information
One can fix the issue caused by moving the project folder by manually changing the path in the
amplify/.config/local-env-info.json
but it took a few days from me to figure out what was the issue in the first place.here is my question at re:Post
and in discord server
Before submitting, please confirm:
The text was updated successfully, but these errors were encountered: