vaulted icon indicating copy to clipboard operation
vaulted copied to clipboard

Fixing spawn_test for go 1.21

Open pfgray opened this issue 1 year ago • 0 comments

In go 1.21, go env changed the way it printed values

go version < 1.21:

GOPATH="/vaulted"
...

go >= 1.21:

GOPATH='/vaulted'
...

Which causes spawn_test.go to fail, since it's looking for exactly GOPATH="/vaulted" in go env's output.

This commit updates the test to look for single quotes or double quotes, making it compatible with all versions of go.

pfgray avatar Feb 09 '24 02:02 pfgray