-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Stop convert windows path to posix style #7826
base: develop
Are you sure you want to change the base?
Conversation
Hi @y-stm, thank you for raising this PR! I see some tests are failing due to linting issues, can you please update this PR to fix them? |
8dbca2b
to
fc11bf2
Compare
Can you elaborate on this following statement?
|
38d2277
to
4b9cc01
Compare
@vicheey oh I'm sorry for word-typo. It means Docker Toolbox, not Dropbox. I also rebased the branch onto upstream/develop and run |
292362a
to
76cd63f
Compare
76cd63f
to
8f3818b
Compare
8f3818b
to
8a0f784
Compare
Thank you. Approved the workflow and waiting for test result. |
We just need to make sure we test this properly in Windows (cmd, Powershell, Git bash, etc). But Docker Toolbox is deprecated since a few years ago, so it would be okay to drop support at this point https://github.com/docker-archive/toolbox |
Which issue(s) does this change fix?
#7807
Why is this change necessary?
This change make enable to work
sam local invoke
orsam local start-api
with some container management tools other than Docker Desktop in Windows (such as Rancher Desktop and Podman Desktop.)How does it address the issue?
The cause of disturbing other tools is converting windows path to posix style when binds host directory to container.
(that converts 'C:\path\to\built\Function' to '/c/path/to/built/Function')
However, this conversion suits only for Docker Toolkit and other docker engines don't handle correctly unix-style-path as host directory path.
Removing converting function and uses will fix this issue.
What side effects does this change have?
This change may affect only in windows. Because removed function works as if identity function when given path is already unix style.
After this PR, sam cli will lose Docker Toolbox support.
Mandatory Checklist
PRs will only be reviewed after checklist is complete
make pr
passesmake update-reproducible-reqs
if dependencies were changedBy submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.