Skip to content

improvement: replace auto-sync with notice#12

Merged
zachdaniel merged 1 commit into
ash-project:mainfrom
andyl:remove-auto-sync
Jul 14, 2025
Merged

improvement: replace auto-sync with notice#12
zachdaniel merged 1 commit into
ash-project:mainfrom
andyl:remove-auto-sync

Conversation

@andyl
Copy link
Copy Markdown
Contributor

@andyl andyl commented Jul 14, 2025

See issue #11

Old code automatically ran mix usage_rules.sync after install, forcing the developer to delete AGENTS.md and re-sync.

New code eliminates the auto-sync, and instead emits a notice with example commands.

Contributor checklist

Leave anything that you believe does not apply unchecked.

  • I accept the AI Policy, or AI was not used in the creation of this PR.
  • Bug fixes include regression tests
  • Chores
  • Documentation changes
  • Features include unit/acceptance tests
  • Refactoring
  • Update dependencies

Old code automatically ran `mix usage_rules.sync` after install,
forcing the developer to delete AGENTS.md and re-sync.

New code eliminates the auto-sync, and instead emits a notice
with example commands.
@zachdaniel
Copy link
Copy Markdown
Contributor

FWIW you don't have to delete AGENTS.md. There is a flag to make it remove any packages that you leave out from the command. You should never have to delete AGENTS.md. Does that change your thoughts on this PR?

@andyl
Copy link
Copy Markdown
Contributor Author

andyl commented Jul 14, 2025

Could I somehow pass "sync" arguments during the "install" operation? (ie do install and sync in one command) If that were possible I'd withdraw the PR. FYI the reason I asked for this tweak is that I run usage_rule.install/sync in a bash script (for testing). (My current workaround is to delete AGENTS.md in the script then re-sync.) For interactive use I wouldn't care.

@zachdaniel
Copy link
Copy Markdown
Contributor

We could support a --sync false option...let's go with your PR though. The notice will be a better UX. I will review tomorrow.

@zachdaniel zachdaniel merged commit eaf144d into ash-project:main Jul 14, 2025
@zachdaniel
Copy link
Copy Markdown
Contributor

🚀 Thank you for your contribution! 🚀

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.

2 participants