theNewDynamic / huge-starter

A basic Starter for HUGE
6 stars 3 forks source link

Error: failed to download modules: exec: "go": executable file not found in $PATH #1

Open RoneoOrg opened 3 years ago

RoneoOrg commented 3 years ago

Hi there,

Hugo works fine on other projects, but I get this error with Huge-starter:

Error: failed to download modules: exec: "go": executable file not found in $PATH

Steps to reproduce:

  1. git clone https://github.com/theNewDynamic/huge-starter.git
  2. cd huge-starter/
  3. hugo

Error:

Error: failed to download modules: exec: "go": executable file not found in $PATH
Total in 0 ms

Additional info:

$ whereis go
go: /snap/bin/go.gofmt /snap/bin/go

$ echo $PATH
[...]/snap/bin:/usr/bin/snap:/snap/bin/go

$ go version
go version go1.16.8 linux/amd64

I searched around but found nothing relevant. Any hint?

regisphilibert commented 3 years ago

Hard to say here this is due to your own Hugo and Go install. Have you been able to use Hugo Modules before with that computer?

Maybe your installed Hugo with brew and go with another tool or through the downloadable executable itself but then again, I'm not sure this is what causes the problem.

I found a couple of potential solution googling your error though.