Skip to content

Conversation

@github-actions
Copy link
Contributor

@github-actions github-actions bot commented Oct 18, 2021

Backport of #60575 to release/6.0

/cc @eerhardt

Customer Impact

DotNetHost* packages are not created during source-build. So source-build is not valid since the SDK can't pick these packages up.

Testing

I tested source-build with this change, and it causes the packages to be built.

Risk

There is a risk this could break the official build. Given where we are in the release cycle, I would suggest we take this in the first servicing release. For source-build, we can use a patch for 6.0.0 to take this change - see dotnet/installer#12434.

The subset `host.pkg` is not producing the DotNetHost* NuGet packages. This is because the "Pack" target is getting invoked on the pkgprojs, but pkgprojs expect the "Build" target to be called. Since the "Pack" target is overriden in the Directory.Build.targets to be empty, no one is calling the "Build" target on the pkgprojs.

In an official build, a later subset `packs.tests` comes through and builds `Microsoft.DotNet.CoreSetup.Packaging.Tests.csproj`, which explicitly calls "Build" on the pkgprojs. So official builds still get these packages produced.

In source-build, we are no longer building the `packs.tests` subset, so the packages are not produced.
MichaelSimons pushed a commit to dotnet/installer that referenced this pull request Oct 18, 2021
This should only be necessary until dotnet/runtime#60577 is merged.
@eerhardt
Copy link
Member

I don't think we need this for 6.0.0, but we can take this in our first servicing release.

In source-build, we have taken this change as a "patch" in 6.0.0 - dotnet/installer#12434

@ViktorHofer
Copy link
Member

I thought that we don't use git patches anymore, especially now that every repository has their own source build leg and infrastructure?

@eerhardt
Copy link
Member

I thought that we don't use git patches anymore, especially now that every repository has their own source build leg and infrastructure?

It's definitely not the preferred option - but it is still used to get unblocked, and in cases where the change shouldn't/can't be flown into the repos:

https://github.com/dotnet/installer/tree/release/6.0.1xx/src/SourceBuild/tarball/patches

@mmitche
Copy link
Member

mmitche commented Oct 21, 2021

@eerhardt Is this needed for 6.0?

@MichaelSimons
Copy link
Member

@mmitche - No, we have a source-build patch with these changes. Hopefully this will flow in 6.0.1 and we can remove the patch.

@eerhardt
Copy link
Member

I was concerned that this change could affect the official build somehow, so I was reluctant to get it merged into release/6.0 this late.

The same change was merged into main and it didn't affect the official build AFAICT. So my concerns are alleviated there.

Since this isn't "required" for 6.0.0, I think we can wait for the first 6.0.x servicing release.

@Anipik Anipik added this to the 6.0.1 milestone Oct 21, 2021
@Anipik Anipik merged commit e4d74c5 into release/6.0 Nov 9, 2021
@eerhardt eerhardt deleted the backport/pr-60575-to-release/6.0 branch November 9, 2021 18:32
@ghost ghost locked as resolved and limited conversation to collaborators Dec 9, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants