Go failing - expected 'package', found 'EOF'

前端 未结 10 2136
感情败类
感情败类 2021-02-02 07:33

I\'ve been having a hard time trying to execute a simple golang program in a virtual machine powered by vagrant. These are the relevant fields of my go env:

10条回答
  •  不思量自难忘°
    2021-02-02 08:32

    The problem wasn't neither with GOROOT nor GOPATH. The go installation failed at some point, leaving the whole thing unstable ( files created but completely empty ). When provisioning the virtual machine again, the go module checked whether the files existed. As they did, it took by granted that the installation had already take place.

    A clean up and fresh installation from scratch solved the problem.

提交回复
热议问题