Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

failed to download modules: binary with name "go" not found #59

Closed
Sakh1l opened this issue Nov 24, 2023 · 7 comments
Closed

failed to download modules: binary with name "go" not found #59

Sakh1l opened this issue Nov 24, 2023 · 7 comments

Comments

@Sakh1l
Copy link

Sakh1l commented Nov 24, 2023

when i try to run the command npm run update-modules am getting below error in linux.

hugoplate@1.9.3 update-modules
node ./scripts/clearModules.js && hugo mod clean --all && hugo mod get -u ./... && hugo mod tidy

File does not exist.
Error: failed to load modules: failed to download modules: binary with name "go" not found

I understand that it has an issue with go modules file go.mod. The same error comes up when we run "hugo mod get -u"

@arthurzinck
Copy link

Hi @Sakh1l, have you golang installed ?

@Sakh1l
Copy link
Author

Sakh1l commented Nov 24, 2023 via email

@tfsomrat
Copy link
Contributor

Hey @Sakh1l, you may need to export go path. this thread could help you. or you can more specific with your OS and search google how to export go path on windows/mac/linux.

If everything goes well, then you can see the go version on the terminal by typing go version. thanks

@Sakh1l
Copy link
Author

Sakh1l commented Nov 25, 2023

@tfsomrat Hi, no. I tried that as well. Go path is exported and I have it in my shell environment.

@tfsomrat
Copy link
Contributor

please run go version, hugo version and node -v in the terminal, and give me the output here.

@Sakh1l
Copy link
Author

Sakh1l commented Nov 25, 2023

Here is the output. Thanks @tfsomrat

go version
go version go1.20.5 linux/amd64

hugo version
hugo v0.118.2-da7983ac4b94d97d776d7c2405040de97e95c03d+extended linux/amd64 BuildDate=2023-08-31T11:23:51Z VendorInfo=gohugoio

node -v
v18.17.1

Screenshot from 2023-11-25 18-42-47

@Sakh1l
Copy link
Author

Sakh1l commented Nov 25, 2023

Thanks @tfsomrat . I have installed the golang from apt repo and it worked fine. Earlier, complied it from the source code.
Now, it works. Thanks for your time and effort on looking in it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants