Skip to content

Conversation

@jasonmalinowski
Copy link
Member

We produce a number of pre-release packages for partner teams to get copies of certain APIs we haven't ratified. We never produce 'stable' versions of those packages because they aren't stable in any meaningful way. But sometimes, you want to mix those pre-release packages and their equivalent stable packages in the same build, which is something that ASP.NET needs to do. This means that we can't use strict package version rules that require exact versions everywhere, or else a 1.2.3-beta1 package will be "incompatible" with 1.2.3 the final release.

The easiest fix for this is to change the package dependencies that go from private unofficial packages to official packages as being a "or higher" version requirement, so it works. There's no promise this will work at runtime, but since there's prerelease packages in the mix in the first place there never really was such a promise.

This is an infrastructure only change (and only changing some non-shipping NuGet package metadata), so no ask mode is required.

We produce a number of pre-release packages for partner teams to get
copies of certain APIs we haven't ratified. We never produce 'stable'
versions of those packages because they aren't stable in any meaningful
way. But sometimes, you want to mix those pre-release packages and
their equivalent stable packages in the same build, which is something
that ASP.NET needs to do. This means that we can't use strict package
version rules that require exact versions everywhere, or else
a 1.2.3-beta1 package will be "incompatible" with 1.2.3 the final
release.

The easiest fix for this is to change the package dependencies that go
from private unofficial packages to official packages as being a
"or higher" version requirement, so it works. There's no promise this
will work at runtime, but since there's prerelease packages in the
mix in the first place there never really was such a promise.
@jasonmalinowski jasonmalinowski self-assigned this Jan 18, 2018
@jasonmalinowski jasonmalinowski requested a review from a team January 18, 2018 19:32
@jasonmalinowski
Copy link
Member Author

@heejaechang or maybe @jaredpar a quick review? This is changing some packaging for internal-only packages. These are consumed by Razor that end up with their projects referencing both these (that we produce prerelease only) and also packages that are their shipping ones that reference real versions. This avoids conflicts in that case.

@jaredpar
Copy link
Member

Did you consider adding a comment to why we have this versioning policy somewhere?

@heejaechang
Copy link
Contributor

tagging @rynowak as FYI

@rynowak
Copy link
Member

rynowak commented Jan 29, 2018

Groovy! Thanks @jasonmalinowski

@jasonmalinowski
Copy link
Member Author

@jaredpar The PR message here is the commit message, so that will hopefully help...

@jasonmalinowski jasonmalinowski merged commit b4e05d6 into dotnet:dev15.6.x Jan 29, 2018
@jasonmalinowski jasonmalinowski deleted the fix-remote-unofficial-dependency-versioning branch January 29, 2018 20:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants