Hey, I'm trying to do some Go source code development. But I'm confused about how to do the development.
The Go source code is cloned from https://github.com/golang/go master branch. Originally, I run `cd src &^ ./all.bash` to build the latest Go 1.22 version. It works fine. Then I'm trying to do some source code development. For example, I'm looking at this issue https://github.com/golang/go/issues/64824. It's something about devirtualize.go. So I added two debug lines like `// fmt.Printf("rulin DevirtualizeAndInlineFunc is called\n")` to `src/compile/internal/interleaved/interleaved.go`. Then I tried to build an updated Go version with the updated Go source code `./all.bash`. It failed with ``` rulin DevirtualizeAndInlineFunc is called rulin DevirtualizeAndInlineFunc is called rulin DevirtualizeAndInlineFunc is called rulin DevirtualizeAndInlineFunc is called rulin DevirtualizeAndInlineFunc is called FAIL FAIL cmd/vet 20.524s FAIL go tool dist: Failed: exit status 1 ``` My original development plan is to add the debug line, build the updated Go version, run test code with the updated Go version, and check the debug output message at Go source code. Somehow this doesn't work. At least, it stops at the first step to build an updated Go version with debug message. So here're two questions: 1. What did I do wrong in above steps? 2. Do I have to rebuild Go version every time I make changes to Go source code? and then use the updated Go version to test other existing Go code. Thanks! -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/467e0fca-0d5e-4d98-9402-29965c917246n%40googlegroups.com.