Managing multiple Go versions#
When dealing with several Go projects you inevitably end up needing more than one Go version installed and selected correctly for a given project.
Somehow I always forget how I do this when I need to fix a new version for another project, so here is what I do for the future me:
-
Install the target release Go downloader. For example, for
go1.22.11
-
Now download the actual sdk
-
Now for whatever project that you want to set this version for, create the
direnv
's.envrc
file and set the path accordingly: