The command does not need to output the GOROOT environment variable when working with Go 1.9 and later.
This could probably be safely removed. But if users switch between from a pre-Go 1.9 version to a post 1.9 version, then the shell output would need to unset GOROOT.
The command does not need to output the
GOROOT
environment variable when working with Go 1.9 and later.This could probably be safely removed. But if users switch between from a pre-Go 1.9 version to a post 1.9 version, then the shell output would need to unset GOROOT.