$ go version
go version go1.18 darwin/amd64
Does this issue reproduce with the latest release?
What operating system and processor architecture are you using (go env)?
OS: macOS Monterey Version 12.3 (21E230)
Arch: amd64 (Intel i9)
Bash: GNU bash, version 5.1.16(1)-release (x86_64-apple-darwin20.6.0)
KO_DOCKER_REPO set to a gcr repo - but I've reproduced this using kind.local as well (see kind setup)
Terminal: iTerm2 Build 3.4.15
$ go install firstname.lastname@example.org
$ git clone https://github.com/knative/serving
$ cd serving
# default shell is zsh run bash 5.1
# Run the following a bunch of times until it hangs ~20 tries at times
$ ko resolve -R -f config/core/ > /dev/null
What did you expect to see?
The ko program uses the os/exec.Cmd package to kick off go builds and perform registry credential lookups.
The program runs to completion
What did you see instead?
The program hangs calling cmd.Output(). It looks like it a fork/exec fails as ps -l it shows the forked process but it looks like exec wasn't invoked as the process name is the same.