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 }}
Repository navigation
Unlisted Packages been found in Paket Outdated #327
We'll take a look, but I don't think we made any changes here. We haven't really been touching the v2 API while preparing to release v3 Preview, so I'm not sure what would have happened to cause this behavior to change.
I know that Version vs. NormalizedVersion has been a distinction for a while, where Version exposes the raw version specified in the package (and this package says "2.3" not "2.3.0") whereas NormalizedVersion is normalized to a SemVer format.
You say this worked 2 days ago. With this exact package id/version pair, looking for it with "2.3"? Or is it possible that this edge case of this package having "2.3" specified in the nuspec was not detected before?
Thanks for the info. Maybe something else returned 2.3 instead of 2.3.0
On Nov 13, 2014 11:39 AM, "Jeff Handley" [email protected] wrote:
We'll take a look, but I don't think we made any changes here. We haven't
really been touching the v2 API while preparing to release v3 Preview, so
I'm not sure what would have happened to cause this behavior to change.
I know that Version vs. NormalizedVersion has been a distinction for a
while, where Version exposes the raw version specified in the package (and
this package says "2.3" not "2.3.0") whereas NormalizedVersion is
normalized to a SemVer format.
You say this worked 2 days ago. With this exact package id/version pair,
looking for it with "2.3"? Or is it possible that this edge case of this
package having "2.3" specified in the nuspec was not detected before?
—
Reply to this email directly or view it on GitHub #327 (comment).
Seems to be related to this specific package. Tried a couple of others and there the Version is still intact.
Any chance there is an activity log for this specific package to see what changed behaviour on it?
Yeah, you'd likely see 2.3 show up in some places, including from the nuspec itself. If you download the nupkg for the package and crack it open, you'll see "2.3" for the version. We normalize those versions before we bake them in anywhere in the NuGet VS client. And then we normalize versions while asking for package restore and whatnot too. But we have to expose Version verbatim in some places for backwards compat from before we normalized versions.
Ok I think I found the issue. Thanks everyone for helping.
The new api v3 gives the normalized version. The old v2 gives 2.3.
The good news is: it's not a breaking change. Just something we have to
consider during nuget v3 vs v2 usage.
Thanks
On Nov 13, 2014 11:44 AM, "Jeff Handley" [email protected] wrote:
Yeah, you'd likely see 2.3 show up in some places, including from the
nuspec itself. If you download the nupkg for the package and crack it open,
you'll see "2.3" for the version. We normalize those versions before we
bake them in anywhere in the NuGet VS client. And then we normalize
versions while asking for package restore and whatnot too. But we have to
expose Version verbatim in some places for backwards compat from before we
normalized versions.
—
Reply to this email directly or view it on GitHub #327 (comment).
Cool. Yeah, API v3 is going to try to hide a lot of the old quirks like this, normalizing versions through and through. If you always use NormalizedVersion against API v2, you should be good.
Yes. Very cool. Thanks
On Nov 13, 2014 11:49 AM, "Jeff Handley" [email protected] wrote:
Cool. Yeah, API v3 is going to try to hide a lot of the old quirks like
this, normalizing versions through and through. If you always use
NormalizedVersion against API v2, you should be good.
—
Reply to this email directly or view it on GitHub #327 (comment).
The only problem is the fallback. Not every feed supports v3 so we have to
normalize before we ask v2 for package details, right?
On Nov 13, 2014 11:53 AM, "Steffen Forkmann" [email protected] wrote:
Yes. Very cool. Thanks
On Nov 13, 2014 11:49 AM, "Jeff Handley" [email protected] wrote:
Cool. Yeah, API v3 is going to try to hide a lot of the old quirks like
this, normalizing versions through and through. If you always use
NormalizedVersion against API v2, you should be good.
—
Reply to this email directly or view it on GitHub #327 (comment).
no that part isn't affected since we cache this data already on disk.
It's just the "give me all version no.s of a given package" that improves things.
Activity
forki commentedon Nov 3, 2014
mhm how can we detect this?
/cc @maartenba
Prepare for #327
maartenba commentedon Nov 3, 2014
Don't laugh... Packages are considered unlisted if their Published property matches a magic date:
agross commentedon Nov 3, 2014
@forki @maartenba We should make a list of magic values used by NuGet.
forki commentedon Nov 3, 2014
Maarten you are a true hero for us.
agross commentedon Nov 3, 2014
@maartenba 👍
maartenba commentedon Nov 3, 2014
@forki @agross We have had all these pains building MyGet so happy to help :-)
forki commentedon Nov 3, 2014
Such a nice feature.
forki commentedon Nov 6, 2014
@maartenba
and https://www.nuget.org/packages/Rx-PlatformServices/2.3.0 shows "unlisted". but I don't find the magic date.
maartenba commentedon Nov 6, 2014
It does however on https://www.nuget.org/api/v2/Packages?$filter=Id eq 'Rx-PlatformServices' and Version eq '2.3'
forki commentedon Nov 6, 2014
So they give different results. Da fuq?
On Nov 6, 2014 6:45 PM, "Maarten Balliauw" [email protected] wrote:
maartenba commentedon Nov 6, 2014
Detect with magic unlisting date - references #327
forki commentedon Nov 6, 2014
I can confirm now. The two different APIs give different Publishing dates.
16 remaining items
forki commentedon Nov 13, 2014
Thanks Maarten I thought I'm stupid.
just to complete the list:
https://www.nuget.org/api/v2/Packages?$filter=Id%20eq%20%27Rx-PlatformServices%27%20and%20NormalizedVersion%20eq%20%272.3%27 --> null
jeffhandley commentedon Nov 13, 2014
We'll take a look, but I don't think we made any changes here. We haven't really been touching the v2 API while preparing to release v3 Preview, so I'm not sure what would have happened to cause this behavior to change.
I know that Version vs. NormalizedVersion has been a distinction for a while, where Version exposes the raw version specified in the package (and this package says "2.3" not "2.3.0") whereas NormalizedVersion is normalized to a SemVer format.
You say this worked 2 days ago. With this exact package id/version pair, looking for it with "2.3"? Or is it possible that this edge case of this package having "2.3" specified in the nuspec was not detected before?
jeffhandley commentedon Nov 13, 2014
BTW Both of the following work:
forki commentedon Nov 13, 2014
Thanks for the info. Maybe something else returned 2.3 instead of 2.3.0
On Nov 13, 2014 11:39 AM, "Jeff Handley" [email protected] wrote:
maartenba commentedon Nov 13, 2014
Seems to be related to this specific package. Tried a couple of others and there the Version is still intact.
Any chance there is an activity log for this specific package to see what changed behaviour on it?
jeffhandley commentedon Nov 13, 2014
Yeah, you'd likely see 2.3 show up in some places, including from the nuspec itself. If you download the nupkg for the package and crack it open, you'll see "2.3" for the version. We normalize those versions before we bake them in anywhere in the NuGet VS client. And then we normalize versions while asking for package restore and whatnot too. But we have to expose Version verbatim in some places for backwards compat from before we normalized versions.
forki commentedon Nov 13, 2014
Ok I think I found the issue. Thanks everyone for helping.
The new api v3 gives the normalized version. The old v2 gives 2.3.
The good news is: it's not a breaking change. Just something we have to
consider during nuget v3 vs v2 usage.
Thanks
On Nov 13, 2014 11:44 AM, "Jeff Handley" [email protected] wrote:
jeffhandley commentedon Nov 13, 2014
Cool. Yeah, API v3 is going to try to hide a lot of the old quirks like this, normalizing versions through and through. If you always use NormalizedVersion against API v2, you should be good.
forki commentedon Nov 13, 2014
Yes. Very cool. Thanks
On Nov 13, 2014 11:49 AM, "Jeff Handley" [email protected] wrote:
forki commentedon Nov 13, 2014
The only problem is the fallback. Not every feed supports v3 so we have to
normalize before we ask v2 for package details, right?
On Nov 13, 2014 11:53 AM, "Steffen Forkmann" [email protected] wrote:
jeffhandley commentedon Nov 13, 2014
Right. I'm pretty sure our clients have been normalizing on all requests for a long time.
forki commentedon Nov 13, 2014
Ok thanks. That's something we can easily do.
On Nov 13, 2014 11:57 AM, "Jeff Handley" [email protected] wrote:
forki commentedon Nov 13, 2014
It actually worked and cut our resolver time in half.
jeffhandley commentedon Nov 13, 2014
When asking for normalized versions, we will hijack the request and serve it from the search service instead of the db. So that makes sense.
forki commentedon Nov 13, 2014
no that part isn't affected since we cache this data already on disk.
It's just the "give me all version no.s of a given package" that improves things.