all: sync with master

This commit is contained in:
Eugene Burkov
2025-01-20 14:41:16 +03:00
parent ceb178fcd5
commit 2e52a2c8a0
61 changed files with 2533 additions and 2711 deletions

View File

@@ -133,7 +133,14 @@ if [ "$verbose" -gt '0' ]; then
"$go" env
fi
if [ "${COVER:-0}" -eq '1' ]; then
cover_flags='--cover=1'
else
cover_flags='--cover=0'
fi
"$go" build \
"$cover_flags" \
--ldflags="$ldflags" \
"$race_flags" \
"$tags_flags" \

View File

@@ -223,6 +223,12 @@ run_linter ineffassign ./...
run_linter unparam ./...
find . \
'(' \
-name 'node_modules' \
-type 'd' \
-prune \
')' \
-o \
-type 'f' \
'(' \
-name 'Makefile' \

View File

@@ -8,13 +8,21 @@
verbose="${VERBOSE:-0}"
readonly verbose
set -e -f -u
# Don't use -f, because we use globs in this script.
set -e -u
if [ "$verbose" -gt '0' ]; then
set -x
fi
# TODO(e.burkov): Lint markdown documents within this project.
# markdownlint \
# ./README.md \
# ;
# TODO(e.burkov): Add README.md and possibly AGHTechDoc.md.
markdownlint \
./CHANGELOG.md \
./CONTRIBUTING.md \
./HACKING.md \
./SECURITY.md \
./internal/next/changelog.md \
./internal/dhcpd/*.md \
./openapi/*.md \
./scripts/*.md \
;