Open pfgray opened 7 months ago
In go 1.21, go env changed the way it printed values
go env
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.
spawn_test.go
GOPATH="/vaulted"
This commit updates the test to look for single quotes or double quotes, making it compatible with all versions of go.
In go 1.21,
go env
changed the way it printed valuesgo version < 1.21:
go >= 1.21:
Which causes
spawn_test.go
to fail, since it's looking for exactlyGOPATH="/vaulted"
ingo env
's output.This commit updates the test to look for single quotes or double quotes, making it compatible with all versions of go.