Fixing a panic in 'go run' command

Have you found bugs in tools that you are using? Recently, while working on some google/go-github issues, I discovered a panic in go run. It happened when I forgot to provide an argument to the -C flag.

Screenshot of the panic in go run -C

This article explains how I found and fixed the bug in go run -C and go install -C, added tests to prevent future regressions, and how my fix was successfully accepted into the Go repository.

[Read More]