Skip to content

targeting-packs-bad-files fails with .NET 8/9 #251

@tmds

Description

@tmds

The test doesn't like the json files that are in the runtime packs:

# Standard Output:
Executing /tmp/tmp.WWKaTVkqht/dotnet-regular-tests/targeting-packs-bad-files/test.sh with arguments 8.0.0-preview.6.23307.4 in working directory /tmp/tmp.WWKaTVkqht/dotnet-regular-tests/targeting-packs-bad-files
Found .NET at /tmp/tmp.WWKaTVkqht/.dotnet
error: found some json files in /tmp/tmp.WWKaTVkqht/.dotnet/packs
/tmp/tmp.WWKaTVkqht/.dotnet/packs/Microsoft.AspNetCore.App.Runtime.fedora.38-x64/8.0.0-preview.6.23307.4/runtimes/fedora.38-x64/lib/net8.0/Microsoft.AspNetCore.App.deps.json
/tmp/tmp.WWKaTVkqht/.dotnet/packs/Microsoft.AspNetCore.App.Runtime.fedora.38-x64/8.0.0-preview.6.23307.4/runtimes/fedora.38-x64/lib/net8.0/Microsoft.AspNetCore.App.runtimeconfig.json
/tmp/tmp.WWKaTVkqht/.dotnet/packs/Microsoft.NETCore.App.Runtime.fedora.38-x64/8.0.0-preview.6.23307.4/runtimes/fedora.38-x64/lib/net8.0/Microsoft.NETCore.App.deps.json
/tmp/tmp.WWKaTVkqht/.dotnet/packs/Microsoft.NETCore.App.Runtime.fedora.38-x64/8.0.0-preview.6.23307.4/runtimes/fedora.38-x64/lib/net8.0/Microsoft.NETCore.App.runtimeconfig.json
Exit Code: 1
# Standard Error:
++++ command -v dotnet
+++ readlink -f /tmp/tmp.WWKaTVkqht/.dotnet/dotnet
++ dirname /tmp/tmp.WWKaTVkqht/.dotnet/dotnet
+ dotnet_dir=/tmp/tmp.WWKaTVkqht/.dotnet
+ echo 'Found .NET at /tmp/tmp.WWKaTVkqht/.dotnet'
+ errors=0
++ find /tmp/tmp.WWKaTVkqht/.dotnet/packs -iname '*.json'
++ wc -l
+ json_lines=4
+ [[ 4 -gt 0 ]]
+ echo 'error: found some json files in /tmp/tmp.WWKaTVkqht/.dotnet/packs'
+ find /tmp/tmp.WWKaTVkqht/.dotnet/packs -iname '*.json'
+ errors=1
++ find /tmp/tmp.WWKaTVkqht/.dotnet/packs -iname Debug
++ wc -l
+ debug_lines=0
+ [[ 0 -gt 0 ]]
+ [[ 1 -gt 0 ]]
+ exit 1

cc @omajid

Metadata

Metadata

Assignees

No one assigned

    Labels

    8.0.NET 8

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions