• Kubernetes Submit Queue's avatar
    Merge pull request #40650 from cblecker/fix-verify-macos · 651bb054
    Kubernetes Submit Queue authored
    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
    ```
    651bb054
Name
Last commit
Last update
..
artifacts Loading commit data...
hack Loading commit data...
pkg Loading commit data...
BUILD Loading commit data...
OWNERS Loading commit data...
config.json Loading commit data...
main.go Loading commit data...