Skip to content

Only copy restored packages for source only builds #4194

Closed
@mthalman

Description

@mthalman

This issue stems from my comment at dotnet/installer#18824 (comment).

The CopyInnerBuildRestoredPackages task copies restored packages to the .packages directory at the repo root. AFAICT, this collection of packages is used as a means for prebuilt detection, which is done by the ReportPrebuiltUsage target. The issue is that this also gets executed for the unified-build where prebuilt detection isn't relevant. So in the unified-build it's wasting time and disk space for no purpose.

This should get cleaned up so it's only done for source builds. In addition, the ReportPrebuiltUsage target should get moved into the same file from where it's referenced.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-infraSource-build infrastructure and reportinguntriaged

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions