Skip to content

Fetch every secdb file on each sync - #4

Merged
keshav-space merged 1 commit into
aboutcode-org:mainfrom
amanbn8:fix-issue-3
Oct 19, 2026
Merged

keshav-space merged 1 commit into
aboutcode-org:mainfrom
amanbn8:fix-issue-3

Conversation

@amanbn8

@amanbn8 amanbn8 commented Sep 30, 2026

Copy link
Copy Markdown
Contributor

Fixes #3.

--mirror implies -N, and after actions/checkout every file has an mtime of "now", so wget only re-downloaded a file when its byte size changed. Same-size upstream changes were skipped silently; secdb/last-update has been stuck at 2026-08-20 while upstream is at 2026-09-30.

This swaps --mirror for -r -l inf, which is the same recursion without timestamping, so every file is fetched and overwritten on each run. The whole tree is about 5 MB.

Checked locally with wget 1.25 on a fresh clone: the old command leaves last-update stale and git status clean; the new command replaces it with the current upstream value, produces no extra files (no index.html, no .1 duplicates), and touches nothing else.

If you would rather also pick up files removed upstream, the alternative is to delete secdb/ before the wget. Happy to switch to that instead.

* Drop --mirror, which implies -N (timestamping). The checkout gives
  every file an mtime of "now", so wget only re-downloaded a file when
  its size changed and silently skipped same-size upstream changes.
  secdb/last-update had been stuck at 2026-08-20 for six weeks.
* Use -r -l inf instead: the same recursion, but every file is fetched
  and overwritten on each run. The whole tree is about 5 MB.

Signed-off-by: Aman Bansal <[email protected]>

@keshav-space keshav-space left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks @amanbn8, LGTM!

@keshav-space
keshav-space merged commit 53d9f07 into aboutcode-org:main Oct 19, 2026
1 check passed
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.

Sync never picks up upstream changes that keep the file size the same (secdb/last-update stale since 2026-08-20)

2 participants