Do not cd inside update-codegen (#1305)

It should be safe to assume that these scripts are run from within the target repo.
This commit is contained in:
Ian Milligan 2020-05-05 17:03:45 -07:00 committed by GitHub
parent 99f815e03d
commit e8bf7b7f98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 5 deletions

View File

@ -46,9 +46,6 @@ APIS_PKG="$3"
GROUPS_WITH_VERSIONS="$4"
shift 4
# To support running this script from anywhere, we have to first cd into this directory.
cd $(dirname "${0}")/..
function codegen::join() { local IFS="$1"; shift; echo "$*"; }
# enumerate group versions

View File

@ -24,8 +24,6 @@ source $(dirname $0)/../vendor/knative.dev/test-infra/scripts/library.sh
CODEGEN_PKG=${CODEGEN_PKG:-$(cd ${REPO_ROOT_DIR}; ls -d -1 $(dirname $0)/../vendor/k8s.io/code-generator 2>/dev/null || echo ../code-generator)}
cd $(dirname $0)/..
# generate the code with:
# --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