I often see people forget to add `|| die` when they call go command. A helper function (similar to eninja or esetup.py) that: 1) appends default GOFLAGS so they cannot be overwritten 2) dies on errors would be convenient.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=647059f7f484488693e7af9b61d5888382123a03 commit 647059f7f484488693e7af9b61d5888382123a03 Author: William Hubbs <williamh@gentoo.org> AuthorDate: 2022-02-25 14:29:08 +0000 Commit: William Hubbs <williamh@gentoo.org> CommitDate: 2022-02-25 14:30:01 +0000 go-module.eclass: add helper function to call go This function will cause the ebuild to die if Go fails. Also, it outputs the go command that is being run. Closes: https://bugs.gentoo.org/833497 Signed-off-by: William Hubbs <williamh@gentoo.org> eclass/go-module.eclass | 13 +++++++++++++ 1 file changed, 13 insertions(+)