Add govulncheck (closes #3)
Install govulncheck with go install after the cleanup step, into /usr/local/bin so it survives the /root/go removal, and check it in the smoke test. Model: deepseek-v4-pro
This commit is contained in:
@@ -21,6 +21,7 @@ Image: `git.eeqj.de/sneak/baseimage`, built for `linux/amd64` and
|
|||||||
| Go (latest) | go.dev tarball | `/usr/local/go` |
|
| Go (latest) | go.dev tarball | `/usr/local/go` |
|
||||||
| golangci-lint | GitHub release | `/usr/local/bin/golangci-lint` |
|
| golangci-lint | GitHub release | `/usr/local/bin/golangci-lint` |
|
||||||
| shellcheck | apt | `/usr/bin/shellcheck` |
|
| shellcheck | apt | `/usr/bin/shellcheck` |
|
||||||
|
| govulncheck | `go install` (latest) | `/usr/local/bin/govulncheck` |
|
||||||
| Hugo (extended) | GitHub release `.deb` | `/usr/local/bin/hugo` |
|
| Hugo (extended) | GitHub release `.deb` | `/usr/local/bin/hugo` |
|
||||||
| Node (distro) | apt `nodejs`, `npm` | `/usr/bin/node` |
|
| Node (distro) | apt `nodejs`, `npm` | `/usr/bin/node` |
|
||||||
| nvm | git tag | `/usr/local/nvm` |
|
| nvm | git tag | `/usr/local/nvm` |
|
||||||
|
|||||||
@@ -22,6 +22,7 @@ docker run --rm "$img" bash -ec '
|
|||||||
COREPACK_ENABLE_NETWORK=0 pnpm --version
|
COREPACK_ENABLE_NETWORK=0 pnpm --version
|
||||||
prettier --version
|
prettier --version
|
||||||
shellcheck --version
|
shellcheck --version
|
||||||
|
govulncheck -version
|
||||||
'
|
'
|
||||||
|
|
||||||
echo "== $img: runit service lifecycle"
|
echo "== $img: runit service lifecycle"
|
||||||
|
|||||||
@@ -94,8 +94,14 @@ rm -rf /usr/share/doc /usr/share/man /usr/share/info /usr/share/lintian
|
|||||||
find /usr/share/locale -mindepth 1 -maxdepth 1 ! -name 'en*' ! -name 'locale.alias' -exec rm -rf {} +
|
find /usr/share/locale -mindepth 1 -maxdepth 1 ! -name 'en*' ! -name 'locale.alias' -exec rm -rf {} +
|
||||||
rm -rf /root/.cache /root/.npm /root/.config /root/go /tmp/* /var/tmp/*
|
rm -rf /root/.cache /root/.npm /root/.config /root/go /tmp/* /var/tmp/*
|
||||||
|
|
||||||
|
# --- govulncheck (Go tool) ---------------------------------------------------
|
||||||
|
# `go install` drops binaries in /root/go/bin, which the cleanup above
|
||||||
|
# removes; install into /usr/local/bin so it stays on PATH.
|
||||||
|
GOBIN=/usr/local/bin go install golang.org/x/vuln/cmd/govulncheck@latest
|
||||||
|
|
||||||
# --- sanity ------------------------------------------------------------------
|
# --- sanity ------------------------------------------------------------------
|
||||||
go version
|
go version
|
||||||
|
govulncheck -version
|
||||||
golangci-lint version
|
golangci-lint version
|
||||||
shellcheck --version
|
shellcheck --version
|
||||||
hugo version
|
hugo version
|
||||||
@@ -112,5 +118,5 @@ test -x /usr/local/sbin/runsvinit
|
|||||||
test -d /etc/service
|
test -d /etc/service
|
||||||
|
|
||||||
# The checks above leave caches behind (node compile cache etc).
|
# The checks above leave caches behind (node compile cache etc).
|
||||||
rm -rf /tmp/* /var/tmp/* /root/.cache /root/.npm /root/.config
|
rm -rf /tmp/* /var/tmp/* /root/.cache /root/.npm /root/.config /root/go
|
||||||
rm -f "$0"
|
rm -f "$0"
|
||||||
|
|||||||
Reference in New Issue
Block a user