Skip to content

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

Closed

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

Activity

  1. changed the title [-]targeting-packs-bad-files fails with .NET 8[/-] [+]targeting-packs-bad-files fails with .NET 8/9[/+] on Feb 1, 2024
  2. tmds commented on Jan 22, 2025

    @tmds
    MemberAuthor

    This also fails on .NET 10.

    We're skipping it on all version that are supported (or in development).

    cc @nicrowe00

  3. changed the title [-]targeting-packs-bad-files fails with .NET 8/9[/-] [+]targeting-packs-bad-files fails with .NET 8/9/10/11[/+] on Mar 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    8.0

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions