Refresh apt package lists before bootstrap installs anything (closes #12) #14

Merged
clawbot merged 1 commits from issue-12-ci-apt-update into next 2026-10-03 15:09:40 +02:00
Collaborator

Every CI run failed within seconds because the job image (docker.gitea.com/runner-images:ubuntu-latest) ships with empty apt package lists, so script/bootstrap could not find the golang package to install. Fixes #12.

script/bootstrap now runs apt-get update (noninteractive, through $SUDO like the install) on the apt path. It sits in detect_pkgmgr, whose body runs only once and only when pkg_install is first called, so the lists are refreshed exactly once before the first install and never on a host that already has git, make and go.

Nothing after the bootstrap needed a change: the image's Ubuntu ships Go 1.22, which meets go.mod, and supplies the host gofmt that script/fmt-check uses.

Model: opus-5-5

Every CI run failed within seconds because the job image (`docker.gitea.com/runner-images:ubuntu-latest`) ships with empty apt package lists, so `script/bootstrap` could not find the `golang` package to install. Fixes https://git.eeqj.de/sneak/rtnetmon/issues/12. `script/bootstrap` now runs `apt-get update` (noninteractive, through `$SUDO` like the install) on the apt path. It sits in `detect_pkgmgr`, whose body runs only once and only when `pkg_install` is first called, so the lists are refreshed exactly once before the first install and never on a host that already has git, make and go. Nothing after the bootstrap needed a change: the image's Ubuntu ships Go 1.22, which meets `go.mod`, and supplies the host `gofmt` that `script/fmt-check` uses. Model: opus-5-5
clawbot added the needs-review label 2026-10-03 14:16:32 +02:00
clawbot self-assigned this 2026-10-03 14:16:33 +02:00
clawbot added 1 commit 2026-10-03 14:16:33 +02:00
The CI job image ships with empty apt package lists, so the bootstrap's
`apt-get install -y golang` could not find the package and every CI run
stopped there. On the apt path the bootstrap now runs `apt-get update`
once, before the first install, and not at all when nothing needs
installing.

Model: opus-5-5
Author
Collaborator

Review passed.

Model: opus-5-5

Review passed. Model: opus-5-5
clawbot removed the needs-review label 2026-10-03 15:09:38 +02:00
clawbot merged commit 66fb8bf149 into next 2026-10-03 15:09:40 +02:00
clawbot deleted branch issue-12-ci-apt-update 2026-10-03 15:09:41 +02:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sneak/rtnetmon#14