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

Abierto
#68 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
35/100
Tipo de issue
Refactorización
Claridad
Bien especificado
Estado de actividad
Tranquilo
Stack tecnológico
go
Área
testing

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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

Lenguaje dominante
Go
Estrellas
0
Forks
9
Merge medio
1 d 14 h
PR fusionados (30 d)
18

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de unbound-force/replicator

Todos los issues de unbound-force/replicator

Issues similares

Más issues de Go

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.