On sprites, go-version does not implement "use" correctly

Just a heads up, as this bothered me for a bit: If you try using “go-version” within a sprite, you’ll find that you can’t “use” any new version you install. That’s because the line setting the current version of Go shows:

sprite@q-dev:~# grep -r ln /.sprite/bin/go-version
ln -sf “$GO_BASE_DIR/versions/$version” “$GO_BASE_DIR/current”

Instead, this wants to be:

ln -snf “$GO_BASE_DIR/versions/$version” “$GO_BASE_DIR/current”

Some context:

sprite@q-dev:~# go-version current
go version go1.25.1 linux/amd64
sprite@q-dev:~# go-version install 1.26.1
Installing Go 1.26.1…
Go 1.26.1 is already installed
sprite@q-dev:~# go-version use 1.26.1
Switching to Go 1.26.1…
Go 1.26.1 is now active
go version go1.25.1 linux/amd64
sprite@q-dev:~# go version
go version go1.25.1 linux/amd64
sprite@q-dev:~#

Should be an easy fix for the next sprites release!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.