Skip to content

Fix error git clone failed with error code 128 - Windows #541

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

Closed
wants to merge 1 commit into from

Conversation

joelrojas
Copy link

Docker for Windows has some issues with the permissions when mounting files in containers.

docker/for-win#2042

@bsamuel-ui
Copy link
Contributor

Please see #550

@@ -212,6 +212,8 @@ function installRequirements(targetFolder, serverless, options) {
'-e',
'SSH_AUTH_SOCK=/tmp/ssh_sock'
);
chmod_cmd = ['chmod', '600', '/root/.ssh/id_rsa'];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it possible to only run this command for Windows environments?
If possible, we should try to avoid modifying the permissions of user's files (since the SSH private key is mounted from the user directly).

Also, please keep in mind that there may be other, non-RSA private keys.

@pgrzesik
Copy link
Contributor

Hey @joelrojas - it was a long time since this PR was proposed - I'm going to close it and if you'd still like to work on this one, please propose a new PR against latest main branch. Thanks 🙇

@pgrzesik pgrzesik closed this Sep 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants