pkg: Estabilish pkg as a module

This commit is contained in:
Piotr Tabor
2020-10-08 21:55:47 +02:00
parent 1983c89e27
commit bfa91d48af
7 changed files with 147 additions and 12 deletions

View File

@@ -92,7 +92,7 @@ function run_for_module {
}
function modules() {
echo "go.etcd.io/etcd/v3 go.etcd.io/etcd/tests/v3"
echo "go.etcd.io/etcd/api/v3 go.etcd.io/etcd/pkg/v3 go.etcd.io/etcd/v3 go.etcd.io/etcd/tests/v3"
}
function modules_exp() {
@@ -108,6 +108,7 @@ function run_for_modules {
local pkg="${PKG:-./...}"
if [ -z "${USERMOD}" ]; then
run_for_module "api" "$@" "${pkg}" || return "$?"
run_for_module "pkg" "$@" "${pkg}" || return "$?"
run_for_module "." "$@" "${pkg}" || return "$?"
run_for_module "tests" "$@" "${pkg}" || return "$?"
else