In /usr/bin/dh_golang_autopkgtest line 8: echo "[error] $@" >&2 ^-- SC2145: Argument mixes string and array. Use * or separate argument. In /usr/bin/dh_golang_autopkgtest line 13: echo "[info] $@" ^-- SC2145: Argument mixes string and array. Use * or separate argument. In /usr/bin/dh_golang_autopkgtest line 17: test ${AUTOPKGTEST_DEBUG:-0} = 1 ^---------------------^ SC2086: Double quote to prevent globbing and word splitting. Did you mean: test "${AUTOPKGTEST_DEBUG:-0}" = 1 In /usr/bin/dh_golang_autopkgtest line 22: echo "[debug] $@" ^-- SC2145: Argument mixes string and array. Use * or separate argument. In /usr/bin/dh_golang_autopkgtest line 30: eval $(dpkg-architecture --print-set) ^-- SC2046: Quote this to prevent word splitting. In /usr/bin/dh_golang_autopkgtest line 31: if [ -z "${AUTOPKGTEST_TMP:-}" -o ! -d "${AUTOPKGTEST_TMP:-}" -o \ ^-- SC2166: Prefer [ p ] || [ q ] as [ p -o q ] is not well defined. ^-- SC2166: Prefer [ p ] || [ q ] as [ p -o q ] is not well defined. In /usr/bin/dh_golang_autopkgtest line 44: }' | egrep -v -e '^[^[:alnum:]]' | egrep .) ^---^ SC2196: egrep is non-standard and deprecated. Use grep -E instead. ^---^ SC2196: egrep is non-standard and deprecated. Use grep -E instead. In /usr/bin/dh_golang_autopkgtest line 45: debug "Defined targets in debian/rules:" $TARGETS ^------^ SC2086: Double quote to prevent globbing and word splitting. Did you mean: debug "Defined targets in debian/rules:" "$TARGETS" In /usr/bin/dh_golang_autopkgtest line 77: pkgs=($(echo $pkgs | tr -d " \n" | tr "," " ")) ^-- SC2207: Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^---^ SC2086: Double quote to prevent globbing and word splitting. Did you mean: pkgs=($(echo "$pkgs" | tr -d " \n" | tr "," " ")) In /usr/bin/dh_golang_autopkgtest line 107: if echo "$TARGETS" | egrep -q '(^| )override_dh_auto_configure($| )'; ^---^ SC2196: egrep is non-standard and deprecated. Use grep -E instead. In /usr/bin/dh_golang_autopkgtest line 137: if echo "$TARGETS" | egrep -q '(^| )autopkgtest($| )'; then ^---^ SC2196: egrep is non-standard and deprecated. Use grep -E instead. For more information: https://www.shellcheck.net/wiki/SC2145 -- Argument mixes string and array. ... https://www.shellcheck.net/wiki/SC2046 -- Quote this to prevent word splitt... https://www.shellcheck.net/wiki/SC2166 -- Prefer [ p ] || [ q ] as [ p -o q...