Sure, but that's not specific to any language. Is it Go's fault that package writers work a certain way?
With other languages, you might do code generation through powerful macros (e.g. as rust has) or some other tooling which is not literally just "run a program in the user's path".
I'm not judging the existence of `go generate` or it's merits relative to some other environments. Except makefiles. Makefiles are worse.