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
I have a usecase where I need to cache licenses for Pub packages. It's currently possible to download each version archive tarball and examine the license file, but it would save downloading tarballs if you were able to add a 'license' field to either the top level package object, or to each version object as returned by the /api/packages/<package> endpoint.
It is currently possible to get the rest of this metadata (if available) from the pubspec field, but the license data is only possible by parsing the HTML or tarball.
// Current object:
{
"version": "",
"pubspec": {},
"license": "MIT" // Suggested new field
"archive_url": "",
"archive_sha256": "",
"published": ""
},
The text was updated successfully, but these errors were encountered:
👋 from the GitHub dependency graph team. We'd also love to have this data in the API, as it would help us report on license information in Dart packages. Currently we don't have it since there isn't an authoritative API to source this data from, limiting Dart from being able to use features like dependency review. We'd love to offer this to our many shared users.
I have a usecase where I need to cache licenses for Pub packages. It's currently possible to download each version archive tarball and examine the license file, but it would save downloading tarballs if you were able to add a 'license' field to either the top level package object, or to each version object as returned by the
/api/packages/<package>
endpoint.It is currently possible to get the rest of this metadata (if available) from the pubspec field, but the license data is only possible by parsing the HTML or tarball.
The text was updated successfully, but these errors were encountered: