-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Conversation
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
.../pkg/Microsoft.Extensions.Internal.Transport/Microsoft.Extensions.Internal.Transport.pkgproj
Outdated
Show resolved
Hide resolved
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> |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this 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.