aws / aws/aws-lambda-builders

SAM build continually updates Lambda Tools

Offen
#347 8 Kommentare 3 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
area/workflow/dotnet_clipackage stage/pr type/feature
Vorherrschende Sprache
Python
Sterne
380
Forks
161
Ø Merge
1 T. 1 Std.
Gemergte PRs (30 T.)
2

Beschreibung

**Description:**
Hello AWS, is there a way to disable sam build from trying to update the lambda tools? I have the latest installed and it continually tries to upgrade them but this takes several minutes each sam build. You can see in the log below that it says it is successful in the upgrade but when I run sam build again, it again upgrades the tools (to the same version). This is causing significant development delays in my workflow so I was wondering if there is a way to disable this feature?

Installing Amazon.Lambda.Tools Global Tool
2022-03-18 09:28:12,947 | executing dotnet: ['dotnet', 'tool', 'install', '-g', 'Amazon.Lambda.Tools', '--ignore-failed-sources']
2022-03-18 09:28:13,170 |
2022-03-18 09:28:13,170 | Error installing probably due to already installed. Attempt to update to latest version.
2022-03-18 09:28:13,170 | executing dotnet: ['dotnet', 'tool', 'update', '-g', 'Amazon.Lambda.Tools', '--ignore-failed-sources']
2022-03-18 09:30:49,724 | Tool 'amazon.lambda.tools' was reinstalled with the latest stable version (version '5.3.0').
2022-03-18 09:30:49,724 | DotnetCliPackageBuilder:GlobalToolInstall succeeded

As a side note, I have uninstalled and reinstalled the tools several times with dotnet tools directly which doesn't seem to fix the issue.

SAM build continually upgrades the AWS Lambda Tools and doesn't recognize that it has installed the latest already.

**Steps to reproduce the issue:**
1. sam build

**Observed result:**
SAM doesn't detect the latest version of lambda tools is already installed in the global space
**Expected result:**
SAM should not try to upgrade the tools when it is already running the latest.

**Additional environment details (Ex: Windows, Mac, Amazon Linux etc)**
Osx, SAM CLI version 1.40.1

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Beginne damit, das Problem mit SAM CLI 1.40.1 unter OSX mithilfe von sam build zu reproduzieren, und verfolge anschließend den im Log gezeigten Installations- und Aktualisierungspfad von Amazon.Lambda.Tools. Als abgeschlossen gilt die Aufgabe, wenn eine bereits installierte Version wie 5.3.0 erkannt wird und sam build sie bei nachfolgenden Builds nicht wiederholt aktualisiert.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
aws
Bereich
build-system, cloud
Issue-Typ
Bug
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.