mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-31 15:25:57 +00:00
Merge pull request #40650 from cblecker/fix-verify-macos
Automatic merge from submit-queue (batch tested with PRs 41112, 41201, 41058, 40650, 40926) verify: Use macOS compatible copying method **What this PR does / why we need it**: Similar to the fix in #34944, this fixes issues in the `make verify` tests, by using a copy method that is compatible with macOS and the bsd version of `cp`. Before fix: ``` Verifying hack/make-rules/../../hack/verify-codegen.sh cp: illegal option -- T usage: cp [-R [-H | -L | -P]] [-fi | -n] [-apvX] source_file target_file cp [-R [-H | -L | -P]] [-fi | -n] [-apvX] source_file ... target_directory FAILED hack/make-rules/../../hack/verify-codegen.sh 0s ``` After fix: ``` Verifying hack/make-rules/../../hack/verify-codegen.sh Building client-gen Building lister-gen Building informer-gen diffing cmd/kube-aggregator/hack/../pkg against freshly generated codegen cmd/kube-aggregator/hack/../pkg up to date. +++ [0128 10:06:48] Building the toolchain targets: k8s.io/kubernetes/hack/cmd/teststale k8s.io/kubernetes/vendor/github.com/jteeuwen/go-bindata/go-bindata +++ [0128 10:06:48] Generating bindata: test/e2e/generated/gobindata_util.go /opt/gopath/src/k8s.io/kubernetes /opt/gopath/src/k8s.io/kubernetes/test/e2e/generated /opt/gopath/src/k8s.io/kubernetes/test/e2e/generated +++ [0128 10:06:49] Building go targets for darwin/amd64: cmd/libs/go2idl/client-gen cmd/libs/go2idl/lister-gen cmd/libs/go2idl/informer-gen Building client-gen Building lister-gen Building informer-gen SUCCESS hack/make-rules/../../hack/verify-codegen.sh 59s ``` **Special notes for your reviewer**: **Release note**: ```release-note NONE ```
This commit is contained in:
commit
651bb054b9
@ -33,14 +33,14 @@ trap "cleanup" EXIT SIGINT
|
||||
|
||||
cleanup
|
||||
|
||||
mkdir -p "${_tmp}"
|
||||
cp -a -T "${DIFFROOT}" "${TMP_DIFFROOT}"
|
||||
mkdir -p "${TMP_DIFFROOT}"
|
||||
cp -a "${DIFFROOT}"/* "${TMP_DIFFROOT}"
|
||||
|
||||
"${APIFEDERATOR_ROOT}/hack/update-codegen.sh"
|
||||
echo "diffing ${DIFFROOT} against freshly generated codegen"
|
||||
ret=0
|
||||
diff -Naupr "${DIFFROOT}" "${TMP_DIFFROOT}" || ret=$?
|
||||
cp -a -T "${TMP_DIFFROOT}" "${DIFFROOT}"
|
||||
cp -a "${TMP_DIFFROOT}"/* "${DIFFROOT}"
|
||||
if [[ $ret -eq 0 ]]
|
||||
then
|
||||
echo "${DIFFROOT} up to date."
|
||||
|
Loading…
Reference in New Issue
Block a user