Skip to content

dotnet pack for file-based apps fail determinism check #52614

@richlander

Description

@richlander

I packed a file-based tool. It fails NugetPackageExplorer determinism check.

My D.B.p:

<Project>
  <PropertyGroup>
    <NoWarn>$(NoWarn);NU5119</NoWarn>
  </PropertyGroup>
  <PropertyGroup Condition="'$(OfficialBuild)' == 'true'">
    <Deterministic>true</Deterministic>
    <ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
  </PropertyGroup>
  <ItemGroup>
    <None Include="README.md" Pack="true" PackagePath="\"/>
  </ItemGroup>
</Project>

Command to pack:

dotnet pack -p:OfficialBuild=true dotnetsay.cs -bl

App: https://github.com/richlander/dotnetsay

I wrote a little utility to look deeper:

$ dotnet run -- ~/git/dotnetsay/artifacts/dotnetsay/dotnetsay.3.0.3.nupkg
Processing local package: dotnetsay.3.0.3.nupkg
Package extracted successfully.

Found 1 PDB file(s):

=== tools/net8.0/any/dotnetsay.pdb ===
Paths Normalized: Yes
{
  "documents": {
    "/_/*": "https://raw.githubusercontent.com/richlander/dotnetsay/3662a460f940d95d65b65ec2d84b2f8ad360a3da/*"
  }
}

Checking 1 DLL(s) for embedded PDBs:

=== tools/net8.0/any/dotnetsay.dll ===
Reproducible Flag: Yes
PDB Path Normalized: No
Overall Deterministic: ✗ No

rich@richs-MacBook-Pro SourceLinkExtractor % dotnet run -- ~/git/dotnetsay/artifacts/dotnetsay/dotnetsay.3.0.3.nupkg
Processing local package: dotnetsay.3.0.3.nupkg
Package extracted successfully.

Found 1 PDB file(s):

=== tools/net8.0/any/dotnetsay.pdb ===
Paths Normalized: Yes
{
  "documents": {
    "/_/*": "https://raw.githubusercontent.com/richlander/dotnetsay/3662a460f940d95d65b65ec2d84b2f8ad360a3da/*"
  }
}

Checking 1 DLL(s) for embedded PDBs:

=== tools/net8.0/any/dotnetsay.dll ===
Reproducible Flag: Yes
PDB Path Normalized: No
Overall Deterministic: ✗ No

Non-normalized paths found:
  CodeView PDB Path: /Users/rich/Library/Application Support/dotnet/runfile/dotnetsay-62e266fb6e3dc33ba76d6e1e30a312dc0af10f763ebfa338fe8b91ad7f658370/obj/release/dotnetsay.pdb

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-run-fileItems related to the "dotnet run <file>" effort

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions