@@ -54,6 +54,9 @@ gl="$(latest_tag golangci/golangci-lint)"
|
|||||||
curl -fsSL "https://github.com/golangci/golangci-lint/releases/download/${gl}/golangci-lint-${gl#v}-linux-${arch}.tar.gz" |
|
curl -fsSL "https://github.com/golangci/golangci-lint/releases/download/${gl}/golangci-lint-${gl#v}-linux-${arch}.tar.gz" |
|
||||||
tar -C /usr/local/bin -xz --strip-components=1 "golangci-lint-${gl#v}-linux-${arch}/golangci-lint"
|
tar -C /usr/local/bin -xz --strip-components=1 "golangci-lint-${gl#v}-linux-${arch}/golangci-lint"
|
||||||
|
|
||||||
|
# --- govulncheck (Go tool) ---------------------------------------------------
|
||||||
|
GOBIN=/usr/local/bin go install golang.org/x/vuln/cmd/govulncheck@latest
|
||||||
|
|
||||||
# --- Hugo (extended) ---------------------------------------------------------
|
# --- Hugo (extended) ---------------------------------------------------------
|
||||||
hv="$(latest_tag gohugoio/hugo)"
|
hv="$(latest_tag gohugoio/hugo)"
|
||||||
curl -fsSL -o /tmp/hugo.deb \
|
curl -fsSL -o /tmp/hugo.deb \
|
||||||
@@ -128,11 +131,6 @@ 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
|
govulncheck -version
|
||||||
@@ -169,5 +167,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 /root/go
|
rm -rf /tmp/* /var/tmp/* /root/.cache /root/.npm /root/.config
|
||||||
rm -f "$0"
|
rm -f "$0"
|
||||||
|
|||||||
Reference in New Issue
Block a user