kubernetes: util.sh missing when trying to run quickstart instructions

/kind bug

What happened:

Followed the quick start guide here https://github.com/kubernetes/kubernetes#to-start-developing-kubernetes

What you expected to happen:

make completed sucessfully

How to reproduce it (as minimally and precisely as possible):

zapf(~) % go get -d k8s.io/kubernetes                                                                                 
package k8s.io/kubernetes: no Go files in /Users/dfc/src/k8s.io/kubernetes                                            
zapf(~) % cd $GOPATH/src/k8s.io/kubernetes                                                                            
zapf(~/src/k8s.io/kubernetes) % make                       
hack/make-rules/../../hack/lib/init.sh: line 39: /Users/dfc/src/k8s.io/kubernetes                                     
/Users/dfc/src/k8s.io/kubernetes/hack/lib/util.sh: No such file or directory                                          
make[1]: *** [_output/bin/deepcopy-gen] Error 1            
make: *** [generated_files] Error 2      

Anything else we need to know?:

Environment:

  • Kubernetes version (use kubectl version): n/a
  • Cloud provider or hardware configuration**: n/a
  • OS (e.g. from /etc/os-release): macOS Sierra(10.12)

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 18 (11 by maintainers)

Commits related to this issue

Most upvoted comments

I would also note: Having a CDPATH set isn’t an issue, it’s only when a CDPATH doesn’t search the cwd first. Having a CDPATH with a leading : solves for this use case.