Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix duplicate asset because of "Build tools subset to generate artifacts" #80487

Merged
merged 1 commit into from
Jan 11, 2023

Conversation

ViktorHofer
Copy link
Member

@ViktorHofer ViktorHofer commented Jan 11, 2023

a1bfa04 broke official builds because the illink package was uploaded in every leg instead of just on windows_x64

I first wanted to revert the change but decided to fix it instead as the fix is straightforward. Setting GeneratePackageOnBuild results in the package being created and published in every RID leg. The dnceng public asset promotion pipeline doesn't allow duplicate assets and hence the official build failed.

Unfortunately we don't have any CI protection for that and we actually hit that issue multiple times in the past cc @mmitche.

Resolving the issue by removing the GeneratePackageOnBuild setting and instead letting packaging.targets define it when BuildAllConfigurations=true is passed in (which is only true in an official build for windows-x64).

@dotnet-issue-labeler
Copy link

I couldn't figure out the best area label to add to this PR. If you have write-permissions please help me learn by adding exactly one area label.

@ghost ghost assigned ViktorHofer Jan 11, 2023
@ViktorHofer
Copy link
Member Author

cc @tlakollo

@ViktorHofer ViktorHofer force-pushed the revert-80406-BuildToolsAlongLibraries branch from f6ce154 to 448d30f Compare January 11, 2023 10:04
@ViktorHofer ViktorHofer requested a review from sbomer as a code owner January 11, 2023 10:04
@ghost ghost added the linkable-framework Issues associated with delivering a linker friendly framework label Jan 11, 2023
@ghost
Copy link

ghost commented Jan 11, 2023

Tagging subscribers to 'linkable-framework': @eerhardt, @vitek-karas, @LakshanF, @sbomer, @joperezr
See info in area-owners.md if you want to be subscribed.

Issue Details

Reverts #80406

Broke official builds because the illink package was uploaded in every leg instead of just on windows_x64

Author: ViktorHofer
Assignees: ViktorHofer
Labels:

linkable-framework

Milestone: -

@ViktorHofer ViktorHofer changed the title Revert "Build tools subset to generate artifacts" Fix duplicate asset because of "Build tools subset to generate artifacts" Jan 11, 2023
@ViktorHofer ViktorHofer merged commit 3f81458 into main Jan 11, 2023
@ViktorHofer ViktorHofer deleted the revert-80406-BuildToolsAlongLibraries branch January 11, 2023 14:37
@ghost ghost locked as resolved and limited conversation to collaborators Feb 10, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
linkable-framework Issues associated with delivering a linker friendly framework
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants