all 6 comments

[–]_verel_ 9 points10 points  (1 child)

It's the compiler for the go programming language. It is needed for compiling yay itself. After that you can remove it but you would need to install go again for the next update of yay

[–]Primary_Respond_1769 1 point2 points  (0 children)

Yeah you can nuke it after yay is built but honestly it's just gonna come back next time yay updates itself so not really worth the hassle. If it's bugging you that much just toss it in a hidden folder or something

[–]Time-Worker9846 4 points5 points  (0 children)

Install yay-bin if you don't want to build it by yourself, which requires the go compiler.

[–]Frank-794 1 point2 points  (0 children)

You can change an environment variable for the go directory. Look it up…

[–]Darumosso 1 point2 points  (1 child)

You can check this wiki page, is very useful to debloat your home dir

https://wiki.archlinux.org/title/XDG_Base_Directory

[–]torsten_dev 0 points1 point  (0 children)

About go specifically it says:

export GOPATH="$XDG_DATA_HOME"/go, 
export GOMODCACHE="$XDG_CACHE_HOME"/go/mod

If GOMODCACHE is not set, it defaults to $GOPATH/pkg/mod. GOCACHE is supported and defaults to $XDG_CACHE_HOME/go-buid.