chore: unify findRepoRoot in agentkit_test.go before merging PRs #56 and #59

Aperta
#68 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
35/100
Tipo di issue
Refactoring
Chiarezza
Specificata chiaramente
Stato di attività
Tranquilla
Stack tecnologico
go
Ambito
testing

Direzione di ricerca

Read PRs #56 and #59 and inspect internal/agentkit/agentkit_test.go to compare their findRepoRoot definitions. Follow the stated merge order, then verify that #59 adopts the existing helper and both changes can merge without a compile error.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Problem

PRs #56 and #59 both define a findRepoRoot helper function in internal/agentkit/agentkit_test.go with incompatible signatures:

  • PR #56: func findRepoRoot(t *testing.T) string
  • PR #59: func findRepoRoot() (string, error)

Merging both will cause a compile error.

Resolution

Establish merge order: #56 merges first (introduces findRepoRoot(t *testing.T) string), then #59 rebases and adopts the existing function.

The (t *testing.T) string signature is preferred — it's idiomatic for test helpers (uses t.Helper() + t.Fatalf internally).

Context

Identified by review council run on 2026-08-10 across the DCP prompt hardening PR series (#54-#59).

Recommended merge order: #54 (merged) → #55 → #57 → #56 → #59

Lingua principale
Go
Stelle
0
Fork
9
Merge medio
1g 14h
PR unite (30g)
18

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di unbound-force/replicator

Tutte le issue di unbound-force/replicator

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.