解决Go程序报错error obtaining VCS status: exit status 128

TrumanWong
5/18/2024
TrumanWong

当运行go程序时提示如下报错:

$ go run main.go
error obtaining VCS status: exit status 128
	Use -buildvcs=false to disable VCS stamping.

解决方案如下: