kubernetes make error:touch: _output/bin/prerelease-lifecycle-gen: No such file or directory

1/21/2021
➜  kubernetes git:(master) make generated_files
+++ [0121 20:12:36] Building go targets for darwin/amd64:
    ./vendor/k8s.io/code-generator/cmd/prerelease-lifecycle-gen
touch: _output/bin/prerelease-lifecycle-gen: No such file or directory
make[1]: *** [_output/bin/prerelease-lifecycle-gen] Error 1
make: *** [generated_files] Error 2

➜  kubernetes git:(master) pwd
$GOPATH/src/kubernetes

➜  kubernetes git:(master) go version
go version go1.15.3 darwin/amd64

Beacuse i want test the src ,but howerver i exec make or make all or make generated_files,it always report error

-- yarong deng
kubernetes

1 Answer

2/20/2021

short answer: go env -w GOBIN=

k8s will install binary to GOBIN if it is not empty, but k8s try to find prerelease-lifecycle-gen under _output/bin

-- gwshi
Source: StackOverflow