When you do not have Go installed on a system and you attempt to use a bootstrapGo root feature, execution will fail here:
ToolchainSettings.java
@Nullable
public String goBinaryVersionOf(Path goroot) {
final Path goBinary = goBinaryOf(goroot);
if (!isExecutable(goBinary)) {
return null;
}
final String stdout;
try {
stdout = executor(goBinary) ////////// ISSUE Here
.argument("version")
.execute()
.getStdoutAsString()
With the exception:
Caused by: java.lang.IllegalStateException: Downloaded and extracted bootstrap to .../projects/serverutils/src/test_project/build/goRoot but it could not be validated as working go installation.
========
In other instances, the executor is initialized as follows:
When you do not have Go installed on a system and you attempt to use a bootstrapGo root feature, execution will fail here:
ToolchainSettings.java
With the exception:
========
In other instances, the executor is initialized as follows:
I believe simply addint the 'GOROOT' setting will fix the problem:
.env("GOROOT", toolchain.getGoroot())