aws / aws/aws-lambda-dotnet

Amazon.Lambda.Core is not deterministic

Offen
#2,181 2 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
feature-request module/lambda-client-lib p2 queued
Vorherrschende Sprache
C#
Sterne
1.7k
Forks
503
Ø Merge
1 T. 5 Std.
Gemergte PRs (30 T.)
18

Beschreibung

### Describe the bug

Viewing [Amazon.Lambda.Core 2.8.0 in NuGet Package Explorer](https://nuget.info/packages/Amazon.Lambda.Core/2.8.0) shows various warnings about the build of the package with respect to Source Link and determinism:

Image

The NuGet packages should be built with `ContinuousIntegrationBuild=true` and `Deterministic=true` to resolve this.

.NET global tools such as `dotnet-validate` and `meziantou.framework.nugetpackagevalidation.tool` can be used to verify this.

For Amazon.Lambda.Core at least, this doesn't appear to be a regression and these have never been enabled.

### Regression Issue

- [ ] Select this option if this issue appears to be a regression.

### Expected Behavior

Packages should be deterministic, e.g. [OpenTelemetry.Instrumentation.AWSLambda@1.13.0](https://nuget.info/packages/OpenTelemetry.Instrumentation.AWSLambda/1.13.0):

Image

### Current Behavior

NuGet package is not deterministic:

Image

### Reproduction Steps

View the NuGet package in [NuGet Package Explorer](https://nuget.info/packages/Amazon.Lambda.Core/2.8.0).

### Possible Solution

Set `ContinuousIntegrationBuild=true` and `Deterministic=true` MSBuild properties when building the NuGet packages for publishing to NuGet.org.

### Additional Information/Context

_No response_

### AWS .NET SDK and/or Package version used

Amazon.Lambda.Core 2.8.0

### Targeted .NET Platform

All

### Operating System and version

All

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Das Issue nennt keine Quelldatei und keinen Test; beginne damit, die zum Veröffentlichen von Amazon.Lambda.Core 2.8.0 verwendete Build-Konfiguration zu finden. Validiere ein erstelltes Paket mit dotnet-validate oder meziantou.framework.nugetpackagevalidation.tool, und betrachte die Arbeit als abgeschlossen, wenn das Paket die Konformität mit ContinuousIntegrationBuild und Deterministic meldet.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
csharp
Bereich
build-system
Issue-Typ
Bug
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Veraltet
Klarheit
Klar beschrieben
Anfängerfreundlichkeit
48/100

Neue Issues direkt in Ihr Postfach

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