bug: replicator init does not add .uf/replicator runtime files to .gitignore

オープン 初心者向け
#85 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
68/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
静か
技術スタック
go
領域
cli

調査の方向性

replicator init が何を書き込むかを追うため、まず cmd/replicator/init.go:41-58 を確認し、次に cmd/replicator/serve.go:66 とルートの .gitignore の40〜44行目を読みます。init がユーザーの .gitignore に、列挙された5つの実行時パターン .uf/replicator/ が含まれるようにすれば完了です。これにより、replicator serve の後に replicator.log のようなファイルが未追跡になりません。

索引モデルが issue の本文から書いたものです。

説明

Bug

replicator init creates the .uf/replicator/ directory and seeds cells.json, but does not add any .gitignore entries for runtime files produced by other commands.

Impact

When a user runs replicator serve, the log file .uf/replicator/replicator.log is created. Because no .gitignore entry exists, this file (and potentially database files) will be tracked by git in the user's project.

The replicator repo's own root .gitignore covers these patterns (lines 40-44), but those entries are not scaffolded into user projects by replicator init.

Steps to Reproduce

  1. Run replicator init in a fresh git repo
  2. Run replicator serve (creates .uf/replicator/replicator.log)
  3. Run git status — the log file shows as untracked

Expected Behavior

replicator init should ensure the project's .gitignore includes entries for .uf/replicator/ runtime files:

.uf/replicator/*.log
.uf/replicator/*.db
.uf/replicator/*.db-shm
.uf/replicator/*.db-wal
.uf/replicator/*.lock

Actual Behavior

No .gitignore entries are written by replicator init. Runtime files get picked up by git.

Relevant Code

  • cmd/replicator/init.go:41-58 — init implementation (no gitignore logic)
  • cmd/replicator/serve.go:66 — log file creation
  • Root .gitignore lines 40-44 — patterns that exist for the replicator repo itself but are not scaffolded
主要言語
Go
スター
0
フォーク
9
平均マージ
1日 14時間
マージ済み PR(30日)
18

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

unbound-force/replicator のほかの issue

unbound-force/replicator の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。