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

Infra changes required for stable builds #42872

Merged
merged 2 commits into from
Oct 1, 2020
Merged

Infra changes required for stable builds #42872

merged 2 commits into from
Oct 1, 2020

Conversation

Anipik
Copy link
Contributor

@Anipik Anipik commented Sep 29, 2020

  • nowarn is required for a shipping package to depend on non-shipping package for core-setup
  • adding back CopyNupkgAndChangeVersion.cs bcoz this is only used in stable versions
  • making Microsoft.Extensions.HostFactoryResolver, System.Numerics.Tensors & Internal.Transport as non-shipping, non-stable

Directory.Build.props Outdated Show resolved Hide resolved
@ViktorHofer
Copy link
Member

nowarn is required for a shipping package to depend on non-shipping package for core-setup

what is the non-shipping package here?

@@ -274,6 +274,7 @@

<PropertyGroup>
<SkipLocalsInit Condition="'$(SkipLocalsInit)' == '' and '$(MSBuildProjectExtension)' == '.csproj' and '$(IsNETCoreAppSrc)' == 'true' and '$(TargetFramework)' == '$(NetCoreAppCurrent)'">true</SkipLocalsInit>
<VersionSuffix>$(_PreReleaseLabel)$(_BuildNumberLabels)</VersionSuffix>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Usually we set the VersionSuffix in Versions.props. Why here only for libraries?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

VersionSuffix should be empty when stablizePackageVersion is set. We require this because of this library specific error check. https://github.com/dotnet/arcade/blob/master/src/Microsoft.DotNet.Build.Tasks.Packaging/src/build/Packaging.targets#L706
We have the same thing done in 3.1 as well. cc @ericstj
Not sure why this error check is here, we should probably resolve this for 6.0

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IIRC this was because of differences with how arcade decided to use VersionSuffix and the way it was already used by our packages. I believe we always want it it to be set and use the index to determine when something is stable vs not. Whereas Arcade decides if something should be stable based solely on properties, then only sets VersionSuffix for non-stable packages.

We could probably change our logic to allow for empty suffix, but then error if we ever tried to build a package that depended on some other package that wasn't represented stable in the index.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So should we follow-up on this?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

@ViktorHofer ViktorHofer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM but please follow-up on the questions before merging.

@Anipik Anipik merged commit 4300a98 into dotnet:release/5.0 Oct 1, 2020
@Anipik Anipik deleted the stableRequirement branch October 1, 2020 00:50
@ghost ghost locked as resolved and limited conversation to collaborators Dec 7, 2020
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.

5 participants