cstamas commented on pull request #139:
URL: https://github.com/apache/maven-resolver/pull/139#issuecomment-1016279906


   @michael-o other "global" answers:
   * algorithm names `Set` vs `List`: important distinction, factory really 
does not propose any "order", hence it gives you the set of supported algorithm 
names w/o any order. OTOH, the **order of checksums in layout** is very 
important: that's the order how resolver will ask for them (and "first found, 
the logic stops" -- hence, today if you have SHA-1 ONLY but no MD5, build will 
still work as resolver with be satisfied with SHA-1 that it asks for the first 
time). Hence, order when used in layout is important. This is reflected by the 
fact, that selector gives you (unordered) names it supports, that is usually 
superset of the names used by layout. OTOH, the layout DOES DEFINE the order, 
as actually that is the order it asks for, Finally, due this, the user config 
(comma separated LIST is a list, has order, but we also want to make sure it is 
unique -- `SHA-1, MD5, MD5` is wrong).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to