main does not build: utils/convert imports utils/sync after it moved to internal/sync
Los mantenedores suelen responder en 3 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 1/5
- Tiempo estimado
- Menos de una hora
- Aptitud para principiantes
- 92/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- go
- Área
- build-system
Línea de trabajo
Abre utils/convert/stat.go y compara su importación de sync con el paquete trasladado a internal/sync. El issue dice que GetByteSlice y PutByteSlice están disponibles allí con los mismos nombres, así que la ruta de importación es el punto de partida. Ejecuta go build ./utils/convert y go test ./utils/merkletrie/...; se habrá terminado cuando ambos comandos pasen.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
What breaks
main does not build for any package that reaches utils/convert:
$ go build ./utils/convert
utils/convert/stat.go:6:2: no required module provides package github.com/go-git/go-git/v6/utils/sync
to add it: go get github.com/go-git/go-git/v6/utils/sync
utils/sync was moved to internal/sync in 0efe1fbc (2026-11-19, "utils: sync, Move to internal/sync"). utils/convert/stat.go then imported the old path in 2db5ca13 (2026-11-26, "utils: convert, Read content in chunks for text statistics"). Both are ancestors of 430ab14f.
Reproduction
git clone https://github.com/go-git/go-git && cd go-git
git checkout 430ab14f
go build ./utils/convert
Fails with the message above on a clean checkout of main (reproduced here on 430ab14f, macOS, go1.27.4). go build ./... stops in the same place.
Knock-on effect
utils/merkletrie/filesystem imports utils/convert, so it fails at setup too, and go test ./utils/merkletrie/... cannot run either:
# github.com/go-git/go-git/v6/utils/merkletrie/filesystem
utils/convert/stat.go:6:2: no required module provides package github.com/go-git/go-git/v6/utils/sync
FAIL github.com/go-git/go-git/v6/utils/merkletrie/filesystem [setup failed]
The current main CI run reflects this: test (master, ubuntu-latest), test (stable, ubuntu-latest), test (stable, windows-latest) and test (stable, macos-latest) are all failing on 430ab14f.
Fix
Point the import at internal/sync. The two identifiers it uses, sync.GetByteSlice() and sync.PutByteSlice() (utils/convert/stat.go:41-42), exist in internal/sync/bytes.go under the same names, so the import line is the only change needed. I have not included a patch here because I have an unrelated PR open against this repository and did not want to add a second one on the same day; happy to send it if nobody has picked this up.
- Lenguaje dominante
- Go
- Estrellas
- 7.9k
- Forks
- 1.1k
- Merge medio
- 4 d 19 h
- PR fusionados (30 d)
- 34
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de go-git/go-git
-
plumbing: ReferenceName.Short() is slow (5× fmt.Sscanf per call, panic/recover on mismatch)Posiblemente ocupada @blakepettersson la tomó hace 11 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
Los mantenedores suelen responder en 3 días
-
storage/filesystem: EncodedObjectSize leaks the loose object file handleQuizá libre de nuevo Un pull request para esta issue se cerró sin fusionarse. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
Los mantenedores suelen responder en 3 días
-
`GO_GIT_USER_AGENT_EXTRA` puts a space in the `agent` capabilityPosiblemente ocupada @BoxBoxJason la tomó hace 54 días. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 3 días
-
Worktree checkout rejects Windows reserved device names (e.g. prn.sh) on Linux/macOS — regression since v5.19.1Posiblemente ocupada @SomSamantray la tomó hace 102 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
go-git/go-git#2322 · 5 comentarios ·
Los mantenedores suelen responder en 3 días
-
go-git ignores files inside un-ignored directory with wildcard patternPosiblemente ocupada @thesahibnanda-max la tomó hace 110 días. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
go-git/go-git#2112 · 3 comentarios ·
Los mantenedores suelen responder en 3 días
Todos los issues de go-git/go-git
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
mattermost/mattermost-plugin-jira#1397 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Add Free CS Systems Workshops, Starter Scaffolds & Zero-Dependency Verification CLI to CS SeriesAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
-
documentation linkinator-failure
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
-
tech-debt
Dificultad 2/5 1-3 horas Aptitud para principiantes 79/100
Los mantenedores suelen responder en 1 día
-
docs: Route53 EKS Terraform example uses outdated EKS module arguments in main.tfPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
Los mantenedores suelen responder en 2 días