microsoft / OSSGadget

Collection of tools for analyzing open source packages.
MIT License
314 stars 49 forks source link

How to best represent artifact download urls for project managers that have more than one file associated. #330

Open jpinz opened 2 years ago

jpinz commented 2 years ago

Would there ever be an interest for callers to differentiate the what each download URL represents? I'm thinking of Maven for example, where one file could be the pom file, one could be a JAR file, one could be sources, etc. etc. I wonder whether we could return a list of object, and the object could contain not only a URL/Uri field, but also something like a package-manager-specific enum indicating the type of artifact the URL points to?

We might need to think carefully about how generics would play out for something like that though.

_Originally posted by @pmalmsten in https://github.com/microsoft/OSSGadget/pull/329#discussion_r851434783_

jpinz commented 2 years ago

@gfs @pmalmsten @bhuwan-agarwal