Add a comment about staticcheck script

Also shift the correct number of params
and remove and unused def.

Signed-off-by: irbekrm <irbekrm@gmail.com>
This commit is contained in:
irbekrm 2021-08-23 08:05:29 +01:00
parent 25303b79c9
commit 7a7d853d9f
4 changed files with 6 additions and 3 deletions

View File

@ -16,7 +16,6 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_file", "http_archive"
load("@bazel_gazelle//:deps.bzl", "go_repository")
def install():
install_misc()
install_integration_test_dependencies()
install_staticcheck()
install_helm()

View File

@ -52,7 +52,7 @@ fi
go=$(realpath "$1")
export PATH=$(dirname "$go"):$PATH
shift 2
shift 1
REPO_ROOT="$BUILD_WORKSPACE_DIRECTORY"
LICENSE_ROOT="$REPO_ROOT"

View File

@ -50,7 +50,7 @@ update_deps_licenses=(
"$go"
)
shift 6
shift 5
cd "$BUILD_WORKSPACE_DIRECTORY"
trap 'echo "FAILED" >&2' ERR

View File

@ -18,6 +18,10 @@ set -o errexit
set -o nounset
set -o pipefail
# This script is currently not run as part of any automated tests.
# https://github.com/jetstack/cert-manager/pull/3037#issue-440523030
# It will also currently only work on linux/amd64, darwin/amd64.
REPO_ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )/../" > /dev/null && pwd )"
# See https://staticcheck.io/docs/checks