-
Notifications
You must be signed in to change notification settings - Fork 202
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
Fix for Quote in username errors dapr init #972 #1322
Conversation
Signed-off-by: mrmtheboss <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mohitpalsingh thanks for the contribution.
Can you add unit tests for this?
yes sure. Will do that tomorrow. |
Signed-off-by: mrmtheboss <[email protected]>
Codecov Report
@@ Coverage Diff @@
## master #1322 +/- ##
==========================================
- Coverage 26.82% 26.81% -0.01%
==========================================
Files 39 39
Lines 3881 3882 +1
==========================================
Hits 1041 1041
- Misses 2766 2767 +1
Partials 74 74
|
Signed-off-by: Mohit Pal Singh <[email protected]>
Signed-off-by: Mohit Pal Singh <[email protected]>
Signed-off-by: Mohit Pal Singh <[email protected]>
Co-authored-by: Shubham Sharma <[email protected]> Signed-off-by: Mohit Pal Singh <[email protected]>
Signed-off-by: Mohit Pal Singh <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @mohitpalsingh for your first contribution, can you just fix the lint failure, overall PR LGTM.
Signed-off-by: Mohit Pal Singh <[email protected]>
Thank you for the feedback and acknowledging my contribution. I appreciate your support. I have addressed the lint failure and made the necessary fixes. Your approval of the overall pull request means a lot to me. Thank you once again for your time and guidance. |
Signed-off-by: Shubham Sharma <[email protected]>
Description
dapr init fails to run with certain username on Windows.
This issue was caused because of an extra apostrophe or single quote in the username since powershell considers it as special character and hence creates syntax issues. To solve this, I created a function in '/utils/utils.go' to take any command and converts into powershell compatible command by appending another quote character after every such character. This makes the command powershell compatible. Now it doesn't throw any syntax error and runs as expected.
Closes #972
Testing
PS C:\Users\Carlin'tVeld> cd D:
PS D:> .\dapr.exe init
Making the jump to hyperspace...
Container images will be pulled from Docker Hub
Installing runtime version 1.11.1
Downloading binaries and setting up components...
Downloaded binaries and completed components set up.
daprd binary has been installed to C:\Users\Carlin'tVeld.dapr\bin.
dapr_placement container is running.
dapr_redis container is running.
dapr_zipkin container is running.
Use
docker ps
to check running containers.Success! Dapr is up and running. To get started, go here: https://aka.ms/dapr-getting-started
PS D:>