You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 18, 2017. It is now read-only.
If we upload a set of packages as unlisted and the package dependencies are not all fully uploaded then kpm restore can break when a project is configured to use the latest packages. We should exclude unlisted packages when doing a package restore.
The text was updated successfully, but these errors were encountered:
If the Published date value is 1900-01-01T00:00:00, then the package is unlisted and it should no longer be considered in dependency resolution when versions are being selected, or during initial installs of packages where users are discovering versions.
However, these "unlisted" versions must still be allowed when the user is restoring packages so that the version doesn't disappear out from under them and break their build.
This feature allows package authors to unlist packages for two reasons:
The package is being staged for an upcoming release announcement and they want to list the package at the time of the announcement.
The package has a very bad bug and the author doesn't want any new users to discover the version that has the bug.
This is implemented through the Published date field simply because it was an incremental change on top of the existing feed format that wouldn't break existing clients or servers.
For API v3, we've currently carried this logic forward, but between Beta and RC, we'll be putting a more intuitive solution in place on the V3 feed so that it will be easy to discern between listed and unlisted but more importantly, the resources exposed for package restore scenarios will include unlisted versions where resources exposed for search and dependency resolution simply won't include them. Then the client won't have to always have logic for checking fields on the package to determine if it's listed or not.
If we upload a set of packages as unlisted and the package dependencies are not all fully uploaded then kpm restore can break when a project is configured to use the latest packages. We should exclude unlisted packages when doing a package restore.
The text was updated successfully, but these errors were encountered: