Receiving error trying to update amazon.lambda.tools global tool when running two sam build commands concurrently
- Lenguaje dominante
- Python
- Estrellas
- 380
- Forks
- 161
- Merge medio
- 1 d 1 h
- PR fusionados (30 d)
- 2
Descripción
**Description:**
Receiving error from `sam build` when building a dotnet core 3.1 lambda function on a CI build server that is running more than one agent.
Error: DotnetCliPackageBuilder:GlobalToolInstall - Error configuring the Amazon.Lambda.Tools .NET Core Global Tool: Dotnet CLI Failed: Tool 'amazon.lambda.tools' failed to update due to the following:
Failed to uninstall tool 'amazon.lambda.tools': Failed to retrieve tool configuration: The process cannot access the file 'C:\Users\CruiseControl\.dotnet\tools\.store\amazon.lambda.tools\4.3.0\amazon.lambda.tools\4.3.0\tools\netcoreapp2.1\any\DotnetToolSettings.xml' because it is being used by another process.
**Steps to reproduce the issue:**
1. Create a SAM project that includes a lambda with the dotnetcore3.1 runtime
2. Create two different workspaces with the same code on your machine
3. run `sam build` concurrently until the file locking issue is encountered
**Additional environment details (Ex: Windows, Mac, Amazon Linux etc)** observed on a windows build host
This seems related to #126 and would likely be resolved by #127 as well. Is there any timeline for releasing that change?
Guía de contribución
Línea de trabajo
Comienza reproduciendo comandos `sam build` simultáneos en un host de compilación Windows usando dos espacios de trabajo y una Lambda dotnetcore3.1. Lee los issues relacionados #126 y #127 para conocer la dirección propuesta; se considera terminado cuando las compilaciones simultáneas ya no fallen al actualizar la herramienta global Amazon.Lambda.Tools.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- aws
- Área
- build-system
- Tipo de issue
- Error
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 30/100