Repository navigation
ci: let the lockfile refresh pass Nub's age gate - #2059
Conversation
nub install --lockfile-only aborts when the resolve wants a version younger than 24 hours, so autofix never commits nub.lock and the other jobs stay on ERR_NUB_OUTDATED_LOCKFILE. Turn the gate off for that refresh only. Co-authored-by: Yam Borodetsky <[email protected]>
|
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
A one-line CI fix in .github/workflows/autofix.yml that lets the autofix lockfile refresh pass Nub's release-age gate.
Refresh lockfilepasses--minimum-release-age=0— the resolve no longer aborts withERR_NUB_NO_MATURE_MATCHING_VERSIONwhen Renovate has bumped a package to a version still inside the default 24-hour cooling window, soautofix.cican commit a freshnub.lockand downstream jobs stop failing onERR_NUB_OUTDATED_LOCKFILE. The gate stays in force for the followingnub installand every other workflow.- Expanded
TODO(2057)comment — records why the flag is needed and that it goes away once renovatebot/renovate#44422 is on the hosted Mend app.
Verified against the pinned toolchain: Nub is pinned to 0.9.3, and the v0.9.3 release binary advertises --minimum-release-age=<duration> with 0 as the documented per-run off switch (and carries ERR_NUB_NO_MATURE_MATCHING_VERSION); --lockfile-only is a documented nub install flag. The change matches Nub's documented behavior exactly, and scoping the gate-off to this single prefixed command keeps the rest of the pipeline on the normal gate.
deepseek-v4.1-flash (free via Pullfrog for OSS) | 𝕏

Autofix rewrites
nub.lockwithnub install --lockfile-only, then the other jobs can install. That rewrite aborts when the resolve wants a version younger than 24 hours (ERR_NUB_NO_MATURE_MATCHING_VERSION). On #2040 that version is[email protected]. Autofix never commits the lockfile, sopkg-pr-new,check-sync, and the test jobs stay onERR_NUB_OUTDATED_LOCKFILE.This passes
--minimum-release-age=0on that refresh only, which is the off switch Nub documents for the age gate. The followingnub installin the same job, and every other workflow, still use the normal gate.TODO(2057)covers removing the step, including this flag, once renovatebot/renovate#44422 is on the hosted Mend app.After this merges, re-run autofix on #2040. The follow-up run is the one that can install.