mirror of
https://github.com/containers/podman.git
synced 2025-07-04 01:48:28 +08:00
CI: only make install.tools when needed
Reintroduce .install.foo targets into Makefile, and invoke only the bare-minimum ones needed for each individual CI step in setup_environment.sh. Also add a retry to the golangci-lint curl, in hopes of dealing with network flakes. And remove the -f (fail) because it produces unhelpful logs. Reason: saw about 25% CI flakes yesterday due to the golangci-lint fetch, something about a timeout, and this was especially frustrating because none of the steps actually needed lint. Quick reminder: avoid network fetches unless absolutely necessary. Fixes: #15892 Signed-off-by: Ed Santiago <santiago@redhat.com>
This commit is contained in:
@ -6,7 +6,7 @@ die() { echo "${1:-No error message given} (from $(basename $0))"; exit 1; }
|
||||
|
||||
function install() {
|
||||
echo "Installing golangci-lint v$VERSION into $BIN"
|
||||
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v$VERSION
|
||||
curl -sSL --retry 5 https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v$VERSION
|
||||
}
|
||||
|
||||
# Undocumented behavior: golangci-lint installer requires $BINDIR in env,
|
||||
|
Reference in New Issue
Block a user