lxndrblz / anatole

Anatole is a minimalistic two-column theme for Hugo.
https://themes.gohugo.io/themes/anatole/
MIT License
650 stars 356 forks source link

Error when try to update #393

Closed erbaafidotama closed 1 year ago

erbaafidotama commented 1 year ago

Hello. Thanks for make amazing hugo theme. I use anatole for my personal blog.

Describe the bug I try to update my anatole theme with run this command in my terminal. hugo mod get -u github.com/lxndrblz/anatole but it showing error: go: go.mod file not found in current directory or any parent directory. 'go get' is no longer supported outside a module. To build and install a command, use 'go install' with a version, like 'go install example.com/cmd@latest' For more information, see https://golang.org/doc/go-get-install-deprecation or run 'go help get' or 'go help install'.

To Reproduce Run hugo mod get -u github.com/lxndrblz/anatole in terminal

Screenshots image

Desktop (please complete the following information):

Smartphone (please complete the following information):

Thanks.

lxndrblz commented 1 year ago

@lxndrblz Can you please confirm that you executed the command in the correct directory? Based on the error message it sounds as the mod go.mod file could not be located.

erbaafidotama commented 1 year ago

go.mod? Sorry, Am i must run go mod init before update?

erbaafidotama commented 1 year ago

This problem solved, with run go mod init. Thanks @lxndrblz