Azure/azure-databricks-operator

Error: Kind not found

stuartleeks opened this issue · 1 comments

When I run make commands I this error: /usr/local/bin/kind: 1: /usr/local/bin/kind: Not: not found

I'm also unable to create a kind cluster to deploy to

For future people coming to this issue or one like it... "Not: not found" happens when curl retrieves a 404 specifically from GitHub releases (and perhaps similarly with other locations). It will write "Not Found" in binary to the file, but not exit with a failing exit code. Instead, one can do curl -f to force a failing exit code.

Typically, people will code something that is roughly

curl -o /usr/local/bin/foo https://example.com/foo
chmod +x /usr/local/bin/foo
/usr/local/bin/foo --version

When the shell tries to run that "Not Found" file, it will see the first line as "Not found" and attempt to execute that line, however "Not" isn't a valid executable, leading to the lovely error:

/usr/local/bin/foo: 1: /usr/local/bin/foo: Not: not found