aws / aws/aws-lambda-dotnet

Amazon.Lambda.Core is not deterministic

Đang mở
#2,181 2 bình luận 0 reaction 0 người được giao Xem trên GitHub
feature-request module/lambda-client-lib p2 queued
Ngôn ngữ chính
C#
Star
1.7k
Fork
503
Merge trung bình
1 ngày 18 giờ
Pull request đã merge (30 ngày)
21

Mô tả

### 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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Issue không nêu tệp nguồn hoặc test nào; trước tiên hãy xác định cấu hình build được sử dụng để phát hành Amazon.Lambda.Core 2.8.0. Xác thực một package đã build bằng dotnet-validate hoặc meziantou.framework.nugetpackagevalidation.tool, và coi công việc là hoàn tất khi package báo cáo tuân thủ ContinuousIntegrationBuild và Deterministic.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
csharp
Lĩnh vực
build-system
Loại issue
Lỗi
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Đặc tả rõ ràng
Mức phù hợp với người mới
48/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.