mirror of
https://github.com/kubernetes/sample-controller.git
synced 2025-04-02 21:52:40 +08:00
Fix scripts to not rely on codegen scripts being executable
If someone doesn't have code-generator in their GOPATH, they'll need to run `go mod vendor` to populate the vendor directory with the code-generator repo (it is required by `hack/tools.go`). However, `go mod vendor` does not mark scripts as executable which leads to a `Permission denied` error while trying to run `update-codegen.sh` in staging repos. So fix scripts to not rely on codegen scripts being executable. Kubernetes-commit: 391da79abd7a7af1cfab04de35daba7cd58c4c80
This commit is contained in:
parent
20cb8607d0
commit
4d46ec53ca
@ -25,7 +25,7 @@ CODEGEN_PKG=${CODEGEN_PKG:-$(cd "${SCRIPT_ROOT}"; ls -d -1 ./vendor/k8s.io/code-
|
||||
# --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
|
||||
# instead of the $GOPATH directly. For normal projects this can be dropped.
|
||||
"${CODEGEN_PKG}"/generate-groups.sh "deepcopy,client,informer,lister" \
|
||||
bash "${CODEGEN_PKG}"/generate-groups.sh "deepcopy,client,informer,lister" \
|
||||
k8s.io/sample-controller/pkg/generated k8s.io/sample-controller/pkg/apis \
|
||||
samplecontroller:v1alpha1 \
|
||||
--output-base "$(dirname "${BASH_SOURCE[0]}")/../../.." \
|
||||
|
Loading…
x
Reference in New Issue
Block a user