mirror of https://github.com/knative/pkg.git
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:
parent
99f815e03d
commit
e8bf7b7f98
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue