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

sources.json grows fast #15

Open
wamserma opened this issue Nov 25, 2023 · 0 comments
Open

sources.json grows fast #15

wamserma opened this issue Nov 25, 2023 · 0 comments
Labels
help wanted Extra attention is needed

Comments

@wamserma
Copy link
Owner

The sources.json file grows faster that anticipated (> 500kbytes/year). This will eventually increase checkout and evaluation time.

The initial goal was to keep this flake as lean and unobtrusive as possible, while also keeping information for as many channel updates as possible.

Solution to investigate:

  • Do updates of sources.json to an archive branch. This still allows for using this flake with older revisions, but may break existing (older) configurations if this flake is not pinned in flake.lock.
  • Extract only current versions to sources.json on the main branch. Filtering can be done on NixOS release numbers (as in the scraper) and sorting on the build numbers. The keep e.g. the latest 15 entries per active release.
  • Filtering is done with a chained GitHub workflow.
@wamserma wamserma added the help wanted Extra attention is needed label Nov 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant