Skip to content

SkipErrorOnPrebuilts no longer works #5489

@corngood

Description

@corngood

Since 5661a2c0a84a3fd32916395b254ce50e5ad7e9fe, I'm unable to build with --online without getting:

/var/tmp/nix-shell.TITB0b/dotnet-11.0.100-preview.1.26104.118/eng/finish-source-only.proj(138,5): error : Prebuilt packages are not allowed in source-only builds.
/var/tmp/nix-shell.TITB0b/dotnet-11.0.100-preview.1.26104.118/eng/finish-source-only.proj(138,5): error :
/var/tmp/nix-shell.TITB0b/dotnet-11.0.100-preview.1.26104.118/eng/finish-source-only.proj(138,5): error : Detected 2 prebuilt package(s):
/var/tmp/nix-shell.TITB0b/dotnet-11.0.100-preview.1.26104.118/eng/finish-source-only.proj(138,5): error :   - runtime.linux-x64.Microsoft.NETCore.ILAsm.11.0.0-alpha.1.26064.118
/var/tmp/nix-shell.TITB0b/dotnet-11.0.100-preview.1.26104.118/eng/finish-source-only.proj(138,5): error :   - runtime.linux-x64.Microsoft.NETCore.ILDAsm.11.0.0-alpha.1.26064.118
/var/tmp/nix-shell.TITB0b/dotnet-11.0.100-preview.1.26104.118/eng/finish-source-only.proj(138,5): error :
/var/tmp/nix-shell.TITB0b/dotnet-11.0.100-preview.1.26104.118/eng/finish-source-only.proj(138,5): error : For detailed usage information, see: /var/tmp/nix-shell.TITB0b/dotnet-11.0.100-preview.1.26104.118/artifacts/log/Release/prebuilt-annotated-usage.xml
/var/tmp/nix-shell.TITB0b/dotnet-11.0.100-preview.1.26104.118/eng/finish-source-only.proj(138,5): error :
/var/tmp/nix-shell.TITB0b/dotnet-11.0.100-preview.1.26104.118/eng/finish-source-only.proj(138,5): error : See https://aka.ms/dotnet/prebuilts for guidance on what prebuilts are and how to eliminate them.

We do an online build in nixpkgs in order to fetch the required nuget dependencies for our bootstrap build. In the past SkipErrorOnPrebuilts was enough to make this work. Perhaps it should be taken into account on this new <Error> as well?

Originally posted by @corngood in dotnet/dotnet#3963 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-prebuiltsReducing the number of prebuilt packages in the tarball

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions