mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
Merge pull request #51813 from thaJeztah/lint_repodir
hack/validate: only search repo-dir for modules
This commit is contained in:
@@ -16,7 +16,7 @@ if pkg-config 'libsystemd' 2> /dev/null; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Note: exclude github.com/docker/docker/man as it contains no Go code.
|
# Note: exclude github.com/docker/docker/man as it contains no Go code.
|
||||||
mods=($(find . -name "go.mod" -type f -exec dirname {} \; | grep -v "man" | sort -u))
|
mods=($(find "${REPODIR}" -name "go.mod" -type f -exec dirname {} \; | grep -v "/man" | sort -u))
|
||||||
for mod in "${mods[@]}"; do
|
for mod in "${mods[@]}"; do
|
||||||
pushd "${mod}" > /dev/null
|
pushd "${mod}" > /dev/null
|
||||||
echo -e "\n\033[0;36mINFO\033[0m Start validation for module '${mod}' with golang-ci-lint"
|
echo -e "\n\033[0;36mINFO\033[0m Start validation for module '${mod}' with golang-ci-lint"
|
||||||
|
|||||||
Reference in New Issue
Block a user