Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Basic initial implementation of oss-fresh-tool. #410

Merged
merged 1 commit into from Mar 21, 2023

Conversation

scovetta
Copy link
Member

This PR contains an initial, basic implementation of a "freshness" calculator.

The goal is, for a given project (Package URL), to tell which versions are acceptable and which are not based on passed in criteria, like:

  • The maximum age (in days) of a package if the project is still being maintained.
  • The maximum age (in days) of a package if the project is NOT still being maintained.
  • The maximum age (in versions) of a package.

Signed-off-by: Michael Scovetta <michael.scovetta@microsoft.com>
@jpinz
Copy link
Member

jpinz commented Mar 20, 2023

Any reason why you went with Libraries.io vs native metadata? I've been trying to get data from the source instead of from a 3rd-party service wherever possible. I'm guessing it was just an ease of use thing, quick for a POC.

@scovetta
Copy link
Member Author

I went with libraries.io because it normalized data between ecosystems, so I didn't need to have special logic to handle npm vs. nuget vs. pypi. I'd certainly prefer native and doing normalization ourselves, but it's a bit more work.

Copy link
Contributor

@gfs gfs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's fine with libraries.io for now. It's a much larger project than this to have a native api with standardized metadata.

Copy link
Member

@jpinz jpinz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@gfs gfs merged commit aaa3c3d into main Mar 21, 2023
8 checks passed
@gfs gfs deleted the scovetta/add-freshness-tool branch March 21, 2023 21:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants