Receiving error trying to update amazon.lambda.tools global tool when running two sam build commands concurrently
- Vorherrschende Sprache
- Python
- Sterne
- 380
- Forks
- 161
- Ø Merge
- 1 T. 1 Std.
- Gemergte PRs (30 T.)
- 2
Beschreibung
**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?
Beitragsleitfaden
Rechercherichtung
Beginne damit, parallele `sam build`-Befehle auf einem Windows-Buildhost mit zwei Workspaces und einer dotnetcore3.1-Lambda zu reproduzieren. Lies die zugehörigen Issues #126 und #127 zur vorgeschlagenen Richtung; als abgeschlossen gilt die Aufgabe, wenn parallele Builds beim Aktualisieren des globalen Amazon.Lambda.Tools-Tools nicht mehr fehlschlagen.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- aws
- Bereich
- build-system
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 30/100