Legacy v0 tool installer hardcodes amd64 binaries, breaking darwin/arm64 hosts
Los mantenedores suelen responder en 2 días
@singhharsh1708 ya está trabajando en esto.
Desde el 6/9/2026.
- #7006 de @rootp1 — cerrado sin fusionar
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 78/100
Línea de trabajo
Empieza por pkg/app/piped/toolregistry/tool_darwin.go e install.go y después compara la plantilla de arquitectura en pkg/app/pipedv1/plugin/kubernetes/toolregistry/scripts.go y pkg/app/pipedv1/cmd/piped/grpcapi/tool_registry.go. Ejecuta las pruebas específicas de Kubernetes, incluidas helm_test.go y kustomize_test.go, y añade cobertura para los scripts renderizados en una arquitectura distinta de amd64. La tarea estará terminada cuando los cuatro scripts de instalación heredados usen la arquitectura del host y las pruebas pasen.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
What happened:
The legacy piped v0 tool registry hardcodes amd64 in every Darwin (and Linux) install script for kubectl, kustomize, helm, and terraform. On an Apple Silicon (darwin/arm64) host, toolregistry.InitDefaultRegistry/installKubectl/installKustomize/installHelm/installTerraform in pkg/app/piped/toolregistry/tool_darwin.go unconditionally download the darwin/amd64 build of each tool, so the resulting binaries cannot execute natively on arm64 hosts.
This affects both local development and any test suite that exercises these code paths.
What you expected to happen:
The legacy v0 tool registry should resolve the host OS/architecture dynamically (the same way the newer pipedv1 tool registries already parameterize {{ .Os }} / {{ .Arch }} in their install scripts), so it downloads a binary compatible with the host architecture.
How to reproduce it:
- Use a
darwin/arm64machine (e.g. Apple Silicon Mac). - From the repository root, run:
go test ./pkg/app/piped/platformprovider/kubernetes/... - Observe failures such as:
infork/exec /tmp/piped-bin/helm: bad CPU type in executablehelm_test.goandkustomize_test.go, because the previously-downloadeddarwin/amd64helm/kustomizebinaries cannot run onarm64. - Inspect
pkg/app/piped/toolregistry/tool_darwin.go(lines ~17-55) and confirm every download URL is pinned todarwin/amd64, regardless ofruntime.GOARCH.
Environment:
pipedversion: repository checkout (master)control-planeversion: not applicable- Others: reproduced on macOS
arm64(Apple Silicon); confirmed via static inspection thatpkg/app/piped/toolregistry/tool_darwin.goandpkg/app/piped/toolregistry/install.gonever referenceruntime.GOARCH, unlike thepipedv1tool registries (e.g.pkg/app/pipedv1/plugin/kubernetes/toolregistry/scripts.go,pkg/app/pipedv1/cmd/piped/grpcapi/tool_registry.go) which already template{{ .Os }}/{{ .Arch }}fromruntime.GOOS/runtime.GOARCH.
Suspected root cause:
The older v0 tool registry (pkg/app/piped/toolregistry) uses static, OS-specific install scripts written before Apple Silicon support was considered, while the pipedv1 tool registries were already generalized to resolve the host architecture at install time.
Proposed direction:
Parameterize the Darwin (and Linux) install scripts in pkg/app/piped/toolregistry with the host architecture (runtime.GOARCH), following the pattern already used by the pipedv1 tool registries, and add regression coverage asserting the rendered install scripts reference the host architecture rather than a hardcoded value.
Acceptance criteria:
- Helm, kubectl, kustomize, and Terraform install scripts reference the host architecture instead of a hardcoded
amd64. - The legacy (
pkg/app/piped/toolregistry) andpipedv1tool registries no longer diverge on architecture handling. - Focused tests cover the rendered install scripts for a non-
amd64architecture.
- Lenguaje dominante
- Go
- Estrellas
- 1.4k
- Forks
- 391
- Merge medio
- 4 d 1 h
- PR fusionados (30 d)
- 58
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una 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 pipe-cd/pipecd
-
Applications at the repository root are not triggered by new commitsPosiblemente ocupada @Daksha1611 la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
Los mantenedores suelen responder en 2 días
-
pipedv1 kubernetes plugins ignore trafficRouting.istio.host in K8S_TRAFFIC_ROUTINGPosiblemente ocupada @Dhirenderchoudhary la tomó hoy. Abierto
Dificultad 2/5 Medio día Aptitud para principiantes 74/100
pipe-cd/pipecd#7626 · 1 comentario ·
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 2 días
-
pipectl transfer restore application drops backed-up labelsPosiblemente ocupada @bhavishyajain545 la tomó hace 1 día. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
pipe-cd/pipecd#7622 · 1 comentario ·
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 83/100
Los mantenedores suelen responder en 2 días
Todos los issues de pipe-cd/pipecd
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
-
docker-compose: postgres healthcheck should probe TCP (pg_isready -h localhost)Posiblemente ocupada @zezo-mohamed22 la tomó hoy. Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 82/100
OneBusAway/watchdog#305 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
self-care self-care:agent-discoverability
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
githubnext/gh-cao#20928 ·
Los mantenedores suelen responder en 1 día
-
automation documentation
Dificultad 1/5 Menos de una hora Aptitud para principiantes 70/100
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 85/100
SocialGouv/iterion#3287 ·
Los mantenedores suelen responder en 1 día