Closed johnc44 closed 4 years ago
Where is /c/temp/wsltest2/sam-app/.aws-sam/build/HelloWorldFunction/sub
coming from? Given that your CodeUri is hello_world. will try to reproduce this on windows.
This issue has to do with windows extended attributes (in particular, system.wsl_case_sensitive) flag that Microsoft added to wsl to enable per-directory case-sensitivity settings. To fix the issue, open up the folder in explorer, right click and go to properties, and go to the security tab. You will need to add advanced permissions as specified here:
Note that the per-directory case sensitivity flag is not inherited; directories created in a case sensitive directory are not automatically case sensitive themselves. You must explicitly mark each directory as case sensitive. Changing the flag requires “write attributes” permission to the directory.
Looks like the question has been answered, closing this issue.
Description
When using Ubuntu WSL on Windows 10, running "sam build" on Windows mounted drive on a python3.6 lambda which has a subfolder causes the error: Error: PythonPipBuilder:CopySource - name 'WindowsError' is not defined
Steps to reproduce
I have Ubuntu WSL configured so that "/c" goes to my Windows C drive (instead of the usual /mnt/c). This was to get around another SAM/Docker problem. But I was getting the same issue before I did this.
Anyway, from Ubuntu shell in Win10:
Observed result
Expected result
It should build!
If I do the exact same steps to reproduce outside of the Windows drive (e.g. using /tmp instead of /c/temp) then it all works fine.
Additional environment details (Ex: Windows, Mac, Amazon Linux etc)
sam --version
:0.16.0This is particularly frustrating because my IDE is in Windows, but I can't use git dependencies in requirements.txt. But I can in Ubuntu WSL. So I have to maintain 2 file locations and keep copying files over from Win to Linux.