windmill-labs/windmill · error
Stale scripts metadata found, you may want to update them us
Error message
Stale scripts metadata found, you may want to update them using 'wmill generate-metadata' before pushing:
What it means
Post-push advisory in `wmill sync push`: some script metadata was detected as stale (code changed since metadata was last generated) and autoRegenerate was off, so they were pushed with outdated locks. The lines that follow list the stale script paths.
Source
Thrown at cli/src/commands/sync/sync.ts:5172
workspace,
codebases,
ignore: await ignoreF(opts),
rawWorkspaceDependencies,
tree,
dryRun: opts.dryRun,
});
} finally {
await flushLockfileBatch();
}
}
}
if (staleScripts.length > 0) {
log.info("");
if (autoRegenerate) {
log.info("Auto-regenerated metadata for stale scripts:");
} else {
log.warn(
"Stale scripts metadata found, you may want to update them using 'wmill generate-metadata' before pushing:",
);
}
for (const stale of staleScripts) {
if (autoRegenerate) {
log.info(` ${stale}`);
} else {
log.warn(stale);
}
}
log.info("");
}
if (staleFlows.length > 0) {
if (autoRegenerate) {
log.info("Auto-regenerated locks for stale flows:");
} else {View on GitHub (pinned to e474e8803c)
Solutions
- Run 'wmill generate-metadata' to refresh script metadata/locks
- Or push with the auto-regenerate option enabled
- Re-push after regenerating so remote locks reflect current imports
Defensive patterns
Strategy: fallback
When it happens
Trigger: Thrown at cli/src/commands/sync/sync.ts:5172 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of windmill-labs/windmill@e474e8803c (2026-09-03).
Data as JSON: /api/errors/93286337eafc2099.
Report an issue: GitHub.