refactor(go): inline packages and drop unused dependencies

Replace external golang-packages config file with an inline array,
remove 6 unused packages (actionlint, antidot, gopls, templ, html2md,
pup), and update documentation to match cargo script style.
This commit is contained in:
2026-02-04 02:59:26 +02:00
parent 9b7942a9fb
commit 9d7a1acd30
3 changed files with 23 additions and 57 deletions

View File

@@ -1,6 +1,6 @@
# install-go-packages
Installs Go binaries defined in `config/go/packages`.
Install Go packages defined in the script.
## Usage
@@ -8,5 +8,11 @@ Installs Go binaries defined in `config/go/packages`.
scripts/install-go-packages.sh
```
The script uses `go install` for each package path listed in the configuration
file.
## What it does
1. Checks that `go` is available.
2. Installs each package from the inline list using `go install`.
3. Runs post-install steps (e.g. generating shell completions).
4. Clears the Go module and build caches.
To add or remove packages, edit the `packages` array in `scripts/install-go-packages.sh`.