File tree Expand file tree Collapse file tree
tests/Microsoft.DotNet.Docker.Tests Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -313,7 +313,7 @@ private static IEnumerable<string> GetRuntimeDepsPackages(ProductImageData image
313313 [
314314 "ca-certificates" ,
315315 "gcc-14-base" ,
316- ..GetResoluteChiseledAmd64Packages ( imageData ) ,
316+ ..GetResoluteChiseledArchSpecificPackages ( imageData ) ,
317317 "libc6" ,
318318 "libgcc-s1" ,
319319 "libssl3t64" ,
@@ -392,11 +392,16 @@ private static string GetZLibPackage(OSInfo os)
392392 }
393393
394394 /// <summary>
395- /// Syft detects gcc-16 and openssl-provider-legacy as separate binary packages
396- /// on amd64 resolute chiseled images but not on arm64/ arm32.
395+ /// Syft detects additional binary packages on specific architectures
396+ /// for resolute chiseled images: gcc-16 on amd64, openssl-provider-legacy on arm32.
397397 /// </summary>
398- private static IEnumerable < string > GetResoluteChiseledAmd64Packages ( ProductImageData imageData ) =>
399- imageData . Arch == Arch . Amd64 ? [ "gcc-16" , "openssl-provider-legacy" ] : [ ] ;
398+ private static IEnumerable < string > GetResoluteChiseledArchSpecificPackages ( ProductImageData imageData ) =>
399+ imageData . Arch switch
400+ {
401+ Arch . Amd64 => [ "gcc-16" ] ,
402+ Arch . Arm => [ "openssl-provider-legacy" ] ,
403+ _ => [ ]
404+ } ;
400405
401406 private static IEnumerable < string > GetExtraPackages ( ProductImageData imageData ) => imageData switch
402407 {
@@ -409,7 +414,8 @@ private static IEnumerable<string> GetResoluteChiseledAmd64Packages(ProductImage
409414 {
410415 "icu" ,
411416 "libicu78" ,
412- "tzdata"
417+ "tzdata" ,
418+ "tzdata-legacy"
413419 } ,
414420 { OS : var os } when os == OS . NobleChiseled => new [ ]
415421 {
Original file line number Diff line number Diff line change 33 <packageSources >
44 <clear />
55 <add key =" dotnet-public" value =" https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json" />
6- <add key =" dotnet8" value =" https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet8/nuget/v3/index.json" />
7- <add key =" dotnet9" value =" https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet9/nuget/v3/index.json" />
8- <add key =" dotnet10" value =" https://pkgs.dev.azure.com/dnceng/public/_packaging/darc-pub-dotnet-dotnet-0fc3e418 /nuget/v3/index.json" />
6+ <add key =" dotnet8" value =" https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet8-transport /nuget/v3/index.json" />
7+ <add key =" dotnet9" value =" https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet9-transport /nuget/v3/index.json" />
8+ <add key =" dotnet10" value =" https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet10-transport /nuget/v3/index.json" />
99 </packageSources >
1010</configuration >
You can’t perform that action at this time.
0 commit comments