-
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
Bug: sam build fails if Visual Studio is open #7886
Comments
I updated SAM to ❯ sam --version
SAM CLI, version 1.133.0 ❯ sam build --use-container
Starting Build inside a container
Building codeuri: C:\projects\aws-samples\serverless-dotnet-demo\src\NET8MinimalAPI runtime: provided.al2 architecture: x86_64
functions: ApiFunction
Fetching public.ecr.aws/sam/build-provided.al2:latest-x86_64 Docker container image..................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
Mounting C:\projects\aws-samples\serverless-dotnet-demo\src\NET8MinimalAPI as /tmp/samcli/source:ro,delegated, inside runtime container
Build Failed
Error: CustomMakeBuilder:CopySource - [Errno 13] Permission denied: '/tmp/samcli/source/.vs/NET8MinimalAPI/FileContentIndex/69c73d1c-9558-4ac2-8b30-e42e28097ef0.vsidx'
ApiFunction: Running CustomMakeBuilder:CopySource |
I found a hack by following https://stackoverflow.com/questions/72237599/how-to-disable-that-new-filecontentindex-folder-and-vsidx-files-in-vs-2022 to delete the While this allows the build to continue to the next problem, it's not the best solution. Ideally, |
Thank you for reporting this issue. We will try to reproduce the issue. We will reach out if we need additional information. |
Description:
I am running
sam build
on directory https://github.com/aws-samples/serverless-dotnet-demo/tree/main/src/NET8MinimalAPIIf Visual Studio is open, I get an error message
Permission denied
in the.vs
folder:If I close Visual Studio
sam build
works fine.Steps to reproduce:
sam build
Observed result:
error message above
Expected result:
It should not be necessary to close Visual Studio to run
sam build
Additional environment details (Ex: Windows, Mac, Amazon Linux etc)
sam --version
: SAM CLI, version 1.123.0Add --debug flag to command you are running
The text was updated successfully, but these errors were encountered: