'Golang: The parameter is incorrect

I started with Go yesterday. I started with the most simple code:

package main

import "fmt"
        
func main() {
    fmt.Println("Hello, World!")
}

I installed Go, GOROOT and GOPATH look like points to the correct directories. Go is on the PATH (C:\Go\bin). I have installed the Go extension on VS Code. I'm following the Go tutorial Get started with Go.

But for some reason, when I run the command go run hello.go the terminal returns the following cryptid message fork/exec C:\Users\MYUSER\AppData\Local\Temp\go-build76354\b001\exec\hello.exe: The parameter is incorrect.

I google it and there isn't a single article with this kind of error, I uninstalled and installed go multiple times. I really need some help for this stupid error or I'll just ignore Goland forever ha



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source