Skip to content

fix: prevent stale Foundry CLI AUR publishes - #47

Merged
anandpant merged 1 commit into
mainfrom
fix/foundry-aur-monotonic-publish
Oct 9, 2026
Merged

anandpant merged 1 commit into
mainfrom
fix/foundry-aur-monotonic-publish

Conversation

@anandpant

Copy link
Copy Markdown
Contributor

Changes

  • Reject equal/older Foundry CLI version+pkgrel against cloned AUR metadata before writing, so retrying an old run cannot downgrade AUR.
  • Leave other package publishing unchanged; ordinary non-force push rejects concurrent stale writes.

Checks

  • Reproduced the old publisher downgrading a local fake AUR repository.
  • Five real-local-git regression cases pass (older version/revision, equal, newer version/revision); full package validation and ShellCheck pass. No real AUR writes.

Completes the no-downgrade requirement in shpitdev/foundry-cli#829, following #45.

@anandpant
anandpant merged commit 83ad447 into main Oct 9, 2026
5 checks passed
@anandpant
anandpant deleted the fix/foundry-aur-monotonic-publish branch October 9, 2026 00:04
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.

1 participant