This file is not strict-mode compliant and because of that, if you execute it from a script in strict mode, it will throw an error like follows:
WARN Failed to discover go env: failed to run 'go env': exit status 1
ERRO Running error: context loading failed: failed to load packages: failed to load with go/packages: err: exit status 1: stderr: /Users/myuser/.asdf/plugins/golang/bin/exec-env: line 4: GOROOT: unbound variable
This file is not strict-mode compliant and because of that, if you execute it from a script in strict mode, it will throw an error like follows: