fix shellcheck codegen in code-generator

This commit is contained in:
danielqsj 2019-01-24 11:30:38 +08:00
parent 1386b148df
commit 46d7f7ca17
3 changed files with 10 additions and 13 deletions

View File

@ -165,8 +165,6 @@
./staging/src/k8s.io/apiextensions-apiserver/hack/verify-codegen.sh ./staging/src/k8s.io/apiextensions-apiserver/hack/verify-codegen.sh
./staging/src/k8s.io/code-generator/generate-groups.sh ./staging/src/k8s.io/code-generator/generate-groups.sh
./staging/src/k8s.io/code-generator/generate-internal-groups.sh ./staging/src/k8s.io/code-generator/generate-internal-groups.sh
./staging/src/k8s.io/code-generator/hack/update-codegen.sh
./staging/src/k8s.io/code-generator/hack/verify-codegen.sh
./staging/src/k8s.io/csi-api/hack/update-codegen.sh ./staging/src/k8s.io/csi-api/hack/update-codegen.sh
./staging/src/k8s.io/csi-api/hack/verify-codegen.sh ./staging/src/k8s.io/csi-api/hack/verify-codegen.sh
./staging/src/k8s.io/kube-aggregator/hack/build-image.sh ./staging/src/k8s.io/kube-aggregator/hack/build-image.sh

View File

@ -22,15 +22,15 @@ set -o pipefail
# - --output-base because this script should also be able to run inside the vendor dir of # - --output-base because this script should also be able to run inside the vendor dir of
# k8s.io/kubernetes. The output-base is needed for the generators to output into the vendor dir # k8s.io/kubernetes. The output-base is needed for the generators to output into the vendor dir
# instead of the $GOPATH directly. For normal projects this can be dropped. # instead of the $GOPATH directly. For normal projects this can be dropped.
$(dirname ${BASH_SOURCE})/../generate-internal-groups.sh all \ "$(dirname "${BASH_SOURCE[0]}")"/../generate-internal-groups.sh all \
k8s.io/code-generator/_examples/apiserver k8s.io/code-generator/_examples/apiserver/apis k8s.io/code-generator/_examples/apiserver/apis \ k8s.io/code-generator/_examples/apiserver k8s.io/code-generator/_examples/apiserver/apis k8s.io/code-generator/_examples/apiserver/apis \
"example:v1 example2:v1" \ "example:v1 example2:v1" \
--output-base "$(dirname ${BASH_SOURCE})/../../.." --output-base "$(dirname "${BASH_SOURCE[0]}")/../../.."
$(dirname ${BASH_SOURCE})/../generate-groups.sh all \ "$(dirname "${BASH_SOURCE[0]}")"/../generate-groups.sh all \
k8s.io/code-generator/_examples/crd k8s.io/code-generator/_examples/crd/apis \ k8s.io/code-generator/_examples/crd k8s.io/code-generator/_examples/crd/apis \
"example:v1 example2:v1" \ "example:v1 example2:v1" \
--output-base "$(dirname ${BASH_SOURCE})/../../.." --output-base "$(dirname "${BASH_SOURCE[0]}")/../../.."
$(dirname ${BASH_SOURCE})/../generate-groups.sh all \ "$(dirname "${BASH_SOURCE[0]}")"/../generate-groups.sh all \
k8s.io/code-generator/_examples/MixedCase k8s.io/code-generator/_examples/MixedCase/apis \ k8s.io/code-generator/_examples/MixedCase k8s.io/code-generator/_examples/MixedCase/apis \
"example:v1" \ "example:v1" \
--output-base "$(dirname ${BASH_SOURCE})/../../.." --output-base "$(dirname "${BASH_SOURCE[0]}")/../../.."

View File

@ -18,8 +18,7 @@ set -o errexit
set -o nounset set -o nounset
set -o pipefail set -o pipefail
SCRIPT_ROOT=$(dirname "${BASH_SOURCE}")/.. SCRIPT_ROOT=$(dirname "${BASH_SOURCE[0]}")/..
SCRIPT_BASE=${SCRIPT_ROOT}/../..
DIFFROOT="${SCRIPT_ROOT}/_examples" DIFFROOT="${SCRIPT_ROOT}/_examples"
TMP_DIFFROOT="${SCRIPT_ROOT}/_tmp/_examples" TMP_DIFFROOT="${SCRIPT_ROOT}/_tmp/_examples"
@ -50,6 +49,6 @@ fi
# smoke test # smoke test
echo "Smoke testing _example by compiling..." echo "Smoke testing _example by compiling..."
go build ./${SCRIPT_ROOT}/_examples/crd/... go build ./"${SCRIPT_ROOT}"/_examples/crd/...
go build ./${SCRIPT_ROOT}/_examples/apiserver/... go build ./"${SCRIPT_ROOT}"/_examples/apiserver/...
go build ./${SCRIPT_ROOT}/_examples/MixedCase/... go build ./"${SCRIPT_ROOT}"/_examples/MixedCase/...