Skip to content

fix: NativeAOT/Trimming for generated tools #22

fix: NativeAOT/Trimming for generated tools

fix: NativeAOT/Trimming for generated tools #22

Triggered via pull request March 8, 2025 03:28
@gunpal5gunpal5
synchronize #20
gunpal5:main
Status Failure
Total duration 1m 11s
Artifacts

pull-request.yml

on: pull_request
Test  /  Build, test and publish
1m 5s
Test / Build, test and publish
Fit to window
Zoom out
Zoom in

Annotations

3 errors and 10 warnings
Test / Build, test and publish
Process completed with exit code 1.
Test / Build, test and publish
Test method CSharpToJsonSchema.SnapshotTests.ToolTests.WeatherStrict threw exception: VerifyException: Directory: /home/runner/work/CSharpToJsonSchema/CSharpToJsonSchema/src/tests/CSharpToJsonSchema.SnapshotTests/Snapshots NotEqual: - Received: ToolTests.WeatherStrict_Diagnostics.received.txt Verified: ToolTests.WeatherStrict_Diagnostics.verified.txt FileContent: NotEqual: Received: ToolTests.WeatherStrict_Diagnostics.received.txt [] Verified: ToolTests.WeatherStrict_Diagnostics.verified.txt
Test / Build, test and publish
Test method CSharpToJsonSchema.SnapshotTests.ToolTests.Weather threw exception: VerifyException: Directory: /home/runner/work/CSharpToJsonSchema/CSharpToJsonSchema/src/tests/CSharpToJsonSchema.SnapshotTests/Snapshots NotEqual: - Received: ToolTests.Weather_Diagnostics.received.txt Verified: ToolTests.Weather_Diagnostics.verified.txt FileContent: NotEqual: Received: ToolTests.Weather_Diagnostics.received.txt [] Verified: ToolTests.Weather_Diagnostics.verified.txt
Test / Build, test and publish: src/libs/CSharpToJsonSchema.Generators/JsonGen/Base/ValueEqualityImmutableDictionary.cs#L6
The type 'T' cannot be used as type parameter 'TKey' in the generic type or method 'ImmutableDictionary<TKey, TValue>'. Nullability of type argument 'T' doesn't match 'notnull' constraint.
Test / Build, test and publish: src/libs/CSharpToJsonSchema.Generators/JsonGen/Base/ValueEqualityImmutableDictionary.cs#L6
The type 'T' cannot be used as type parameter 'TKey' in the generic type or method 'ImmutableDictionary<TKey, TValue>'. Nullability of type argument 'T' doesn't match 'notnull' constraint.
Test / Build, test and publish: src/libs/CSharpToJsonSchema.Generators/JsonGen/JsonSourceGenerator.Parser.cs#L20
The using directive for 'CSharpToJsonSchema.Generators.JsonGen.System.Text.Json' appeared previously in this namespace
Test / Build, test and publish: src/libs/CSharpToJsonSchema.Generators/JsonGen/JsonSourceGenerator.Parser.cs#L19
The using directive for 'CSharpToJsonSchema.Generators.JsonGen.Model' appeared previously in this namespace
Test / Build, test and publish: src/libs/CSharpToJsonSchema.Generators/JsonGen/JsonSourceGenerator.Parser.cs#L18
The using directive for 'CSharpToJsonSchema.Generators.JsonGen.Helpers' appeared previously in this namespace
Test / Build, test and publish: src/libs/CSharpToJsonSchema.Generators/JsonGen/JsonSourceGenerator.Parser.cs#L17
The using directive for 'CSharpToJsonSchema.Generators.JsonGen.Base' appeared previously in this namespace
Test / Build, test and publish: src/libs/CSharpToJsonSchema.Generators/JsonGen/JsonSourceGenerator.Parser.cs#L15
The using directive for 'System.Text' appeared previously in this namespace
Test / Build, test and publish: src/libs/CSharpToJsonSchema.Generators/JsonGen/JsonSourceGenerator.Parser.cs#L14
The using directive for 'System.Diagnostics.CodeAnalysis' appeared previously in this namespace
Test / Build, test and publish: src/libs/CSharpToJsonSchema.Generators/JsonGen/JsonSourceGenerator.Parser.cs#L13
The using directive for 'System.Diagnostics' appeared previously in this namespace
Test / Build, test and publish: src/libs/CSharpToJsonSchema.Generators/JsonGen/JsonSourceGenerator.Parser.cs#L12
The using directive for 'System.Collections.Immutable' appeared previously in this namespace