Files
egutierrez 194663a379 feat: add bash infra installer and diagnostic functions
10 funciones Bash del dominio infra: instaladores de herramientas de desarrollo
(install_go, install_nodejs, install_pnpm, install_python312, install_uv,
install_volta, install_wails), diagnostico del sistema (analyze_disk_space,
detect_wsl, list_listening_ports). Automatizan la configuracion del entorno
de desarrollo en Linux/WSL.
2026-04-12 13:54:21 +02:00

1.5 KiB

name, kind, lang, domain, version, purity, signature, description, tags, uses_functions, uses_types, returns, returns_optional, error_type, imports, params, output, tested, tests, test_file_path, file_path, source_repo, source_license, source_file
name kind lang domain version purity signature description tags uses_functions uses_types returns returns_optional error_type imports params output tested tests test_file_path file_path source_repo source_license source_file
install_go function bash infra 1.0.0 impure install_go([version: string], [--force]) -> void Instala Go en Linux descargando desde go.dev/dl. Detecta arquitectura automáticamente (amd64/arm64/armv6l). Idempotente: omite la instalación si Go ya está presente (a menos que se use --force). Configura PATH en ~/.bashrc o ~/.zshrc.
bash
install
go
golang
false error_go_core
name desc
version versión de Go a instalar, ej: 1.22.0 (default: 1.22.0)
name desc
--force flag para reinstalar aunque Go ya esté instalado
progreso a stdout; exit code 1 si la arquitectura no es soportada o falla la descarga false
bash/functions/infra/install_go.sh https://gitea-dgg044oo04woo4ggcsws4gk0.organic-machine.com/egutierrez/DevLauncher.git MIT scripts/linux/instaladores/instalar_go.sh

Ejemplo

source bash/functions/infra/install_go.sh

# Instalar versión por defecto (1.22.0)
install_go

# Instalar versión específica
install_go 1.23.0

# Reinstalar aunque ya esté instalado
install_go 1.22.0 --force

Notas

Requiere curl y sudo. Instala en /usr/local/go. Crea $HOME/go/{bin,src,pkg} como GOPATH. Después de instalar, hay que recargar el shell (source ~/.bashrc) o abrir una nueva terminal.