Introduce API module.

This commit is contained in:
Jeffrey Regan
2019-10-21 13:22:04 -07:00
parent 644f2ddcdc
commit 5416ae7365
47 changed files with 2042 additions and 272 deletions

View File

@@ -28,15 +28,11 @@ if [ ! -d "$dir" ]; then
exit 1
fi
echo Generating linkable plugins...
pushd $dir >& /dev/null
GOPATH=$myGoPath go generate \
sigs.k8s.io/kustomize/plugin/builtin/...
GOPATH=$myGoPath go fmt \
sigs.k8s.io/kustomize/api/plugins/builtins
popd >& /dev/null
for goMod in $(find ./plugin/builtin -name 'go.mod'); do
dir=$(dirname "${goMod}")
(cd $dir; GOPATH=$myGoPath go generate ./...)
echo "Formatting $dir"
(cd $dir; GOPATH=$myGoPath go fmt ./...)
done
echo All done.