Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.
If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!
[ProGet] Connector Ordering / Precedence in ProGet
-
Hi ProGet team,
We use multiple connectors to proxy external sources and would like certain packages to be retrieved from preferred sources first.
Does ProGet support ordering or precedence for connectors? If not, are there any recommended workarounds?
Thanks!
-
They are ordered by the name - so if orderis important to you, I guess you could always do the
10-nuget.org
,20-abc.net
or whateverThanks,
Alana
-
Hi @atripp,
Just to confirm — with the naming, the feed will first retrieve content from
10-nuget.org
, and only then from20-abc.net
, correct?Thanks.
-
Hi @koksime-yap_5909 ,
Not necessarily - it really depends on the API query.
If the query is like "give me a list of all versions of
MyPackage
", then ProGet will need to aggregate local packages and connector packages to produce that list.If the query is "give me the metadata for
MyPackage-1.3.1
", then the first source that returns a result is used.In practice, NuGet asks for "all versions" a lot. So you'll get a lot of queries.
Thanks,
Alana