fix: status reports ok for a hand-edited generated file
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 35/100
Hướng nghiên cứu
Start in src/agentsync/syncer.py and trace how AgentSyncer.sync stores hashes and AgentSyncer.status checks generated files. Add a test that reproduces the hand-edited CLAUDE.md case and confirms status reports "modified"; done means status detects the edit and the test passes. Pull request #19 is already open for this issue.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
AgentSyncer.sync in src/agentsync/syncer.py stores the hash of the canonical rules for every output path in the lock file, and AgentSyncer.status compares against that hash, not the file on disk. So a manual edit to CLAUDE.md still shows [ok], rulesync status exits 0 in CI, and the next sync drops the edit. Store the hash of each generated file in the lock, compare it with the file on disk in status, report a new "modified" status, and add a test for it.
Reproduced with:
$ rulesync init --tools claude_md >/dev/null && rulesync sync >/dev/null
$ echo "- Always use tabs" >> CLAUDE.md
$ rulesync status | grep CLAUDE; echo "exit=${PIPESTATUS[0]}"
[ok] CLAUDE.md
exit=0
$ rulesync sync | grep CLAUDE; grep -c "Always use tabs" CLAUDE.md
[~] CLAUDE.md
0
- Ngôn ngữ chính
- Python
- Star
- 1
- Fork
- 3
- Merge trung bình
- 26 ngày 1 giờ
- Pull request đã merge (30 ngày)
- 5
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của obielin/agentsync
-
feat: write Aider rules to CONVENTIONS.mdCó thể đã có người làm @laozhej đã nhận 28 ngày trước. Đang mởenhancement help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 25/100
-
fix: .gitignore is never updated after the first syncCó thể đã có người làm @bh-official đã nhận 28 ngày trước. Đang mởbug good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 28/100
-
fix: add and remove reset other settings in config.tomlCó thể đã có người làm @laozhej đã nhận 28 ngày trước. Đang mởbug good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 35/100
-
bug help wanted
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 76/100
Tất cả issue của obielin/agentsync
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
cal-itp/data-infra#5887 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
ranacseruet/vaice#139 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
numpy.bytes_ attributes are recorded as a truncated repr instead of their contentCó thể đã có người làm @JoeyTan21 đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
batocera-linux/batocera.linux#17423 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100