-
Notifications
You must be signed in to change notification settings - Fork 819
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
Diffs between code in git repo and code retrieved by amplify pull #4800
Comments
Hi @lorengordon what version of the CLI are you using? You can use |
@jhockett We started the project a week ago with v4.22.0 and updated to v4.23.0 a few days ago. |
I think a cdk provider for amplify could also solve this (#171), since cdk-generated cfn templates would not need to be committed to the repo. |
Hi @lorengordon, thanks for the bug report! I was able to reproduce this issue. |
Thanks for confirming @jhockett. My workaround for now, is to use Amplify Console to manage all builds... Add |
@lorengordon could you please give it a try with the latest CLI version as I think this is fixed under the changes that involved uniform |
@attilah planning to be working with amplify again this weekend, so good timing! Will let you know |
@attilah do you happen to know which pr might have fixed it? I don't see any linked references in this issue... |
@attilah I think this is good now. There's still some pain if you used (I'm testing now with amplify v4.29.1... would still be nice to know which version changed the behavior...) |
@lorengordon one PR I could call out is this: #5125 that added the state management classes and JSON utility classes. The functions is fixed by some other PR that utilizing the new functions. Closing the issue as it seems to be solved. |
This issue has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs. Looking for a help forum? We recommend joining the Amplify Community Discord server |
Is your feature request related to a problem? Please describe.
Running
amplify pull
(oramplify env checkout <env> --restore
oramplify env pull
) results in changes due to white space. Very annoying for comparing diffs and working in a cicd workflow.Seems to primarily affect functions. Using
amplify function add
generates a cloudformation template where spaces are used. After deploying the function withamplify push
, a subsequentamplify pull
replaces the source code with a template that uses tabs for white space! There tend to be a handful of other changes as well, as if the template json was prettified.The text was updated successfully, but these errors were encountered: