Skip to content

fix: guard sync target and fix .ruler path separator - #114

Merged
shunkakinoki merged 1 commit into
mainfrom
fix/ruler-apply-global-path
Apr 5, 2026
Merged

fix: guard sync target and fix .ruler path separator#114
shunkakinoki merged 1 commit into
mainfrom
fix/ruler-apply-global-path

Conversation

@shunkakinoki

@shunkakinoki shunkakinoki commented Apr 5, 2026

Copy link
Copy Markdown
Owner

Summary

  • Guard sync target with DOTAGENTS_SKIP_SYNC conditional to prevent recipe collision when Makefile is included from parent repos via -include dotagents/Makefile
  • Fix missing / separator in ruler-apply-global path: $(abspath ...).ruler -> $(abspath ...)/.ruler

The abspath function strips trailing slashes, so .ruler was concatenated directly to the directory name (e.g. dotagents.ruler instead of dotagents/.ruler), causing rsync to fail in CI.

Closes shunkakinoki/dotfiles#1372


Summary by cubic

Guarded the sync Makefile target with DOTAGENTS_SKIP_SYNC and fixed the .ruler path in ruler-apply-global to stop CI rsync failures. Prevents target collisions when included from parent repos and fixes the missing path separator.

  • Bug Fixes
    • Wrap sync with a DOTAGENTS_SKIP_SYNC check to avoid recipe collisions when -include dotagents/Makefile is used.
    • Use $(abspath ...)/.ruler instead of $(abspath ...).ruler; abspath strips trailing slashes, which produced dotagents.ruler and broke rsync in CI.

Written for commit 5b78a00. Summary will update on new commits.

Copilot AI review requested due to automatic review settings April 5, 2026 14:19
@coderabbitai

coderabbitai Bot commented Apr 5, 2026

Copy link
Copy Markdown

Warning

Rate limit exceeded

@shunkakinoki has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 12 minutes and 16 seconds before requesting another review.

Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 12 minutes and 16 seconds.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 546c7362-f7f7-4f6b-a3c6-e9cf97d82e6a

📥 Commits

Reviewing files that changed from the base of the PR and between 1d9462f and 5b78a00.

📒 Files selected for processing (1)
  • Makefile
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/ruler-apply-global-path

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@shunkakinoki
shunkakinoki merged commit c79760e into main Apr 5, 2026
1 check passed
@shunkakinoki
shunkakinoki deleted the fix/ruler-apply-global-path branch April 5, 2026 14:19

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Guards the sync target to avoid collisions when the Makefile is included by parent repositories, and fixes the .ruler source path so rsync works reliably in CI.

Changes:

  • Wrap sync target in a DOTAGENTS_SKIP_SYNC conditional.
  • Fix .ruler path construction by adding the missing / after abspath.
Comments suppressed due to low confidence (1)

Makefile:1

  • ifeq ($(DOTAGENTS_SKIP_SYNC),) works, but ifndef DOTAGENTS_SKIP_SYNC is clearer/idiomatic for “run only when unset” and avoids subtle behavior if the variable is set to whitespace. Consider switching to ifndef (optional) to make the intent more immediately readable.
.DEFAULT_GOAL := help

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread Makefile
@make skills-sync
@make mcp-sync
@make ruler-dotdirs-sync
endif

Copilot AI Apr 5, 2026

Copy link

Choose a reason for hiding this comment

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

ifeq ($(DOTAGENTS_SKIP_SYNC),) works, but ifndef DOTAGENTS_SKIP_SYNC is clearer/idiomatic for “run only when unset” and avoids subtle behavior if the variable is set to whitespace. Consider switching to ifndef (optional) to make the intent more immediately readable.

Copilot uses AI. Check for mistakes.
Comment thread Makefile
Comment on lines 39 to 41
@make skills-sync
@make mcp-sync
@make ruler-dotdirs-sync

Copilot AI Apr 5, 2026

Copy link

Choose a reason for hiding this comment

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

These recursive invocations should use $(MAKE) instead of make so flags (e.g., -j jobserver, --no-print-directory, SHELL, etc.) propagate correctly. Suggested change: replace each @make ... with @$(MAKE) ....

Copilot uses AI. Check for mistakes.
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