Without this check, calling `go install` with a wrong go_import_path might end up downloading the source code for said package (using git, for example), instead of building from the provided tarball. The first line of go.mod should be "module $go_import_path" for Go to not try and download source code instead of using what it has locally. Fixes #27690.
BUILD STYLES ============ These shell snippets provide support for multiple build systems, i.e GNU configure, CMake, etc. A build style file must provide at least the following functions: - do_configure - do_build - do_install If a source package defines its own do_xxx() function, the function defined in the build style file is simply ignored.