Hi there,
I have issue when update the modules, when I’m execute hugo mod get -u command it doesn’t display anything and the modules are not updated at all.
But, when I’m using hugo mod get -u github.com/FarrelF/stack-modified command, the module successfully updated.
And, when I’m execute hugo mod tidy command for tidying modules (especially go.sum file) from GitHub Codespaces that I just created after I update it, the github.com/FarrelF/stack-modified module get removed from go.mod and go.sum file, that’s quite strange for me, as I included this module to my module configuration.
But, the hugo mod tidy doesn’t display and do anything in my computer, even if I append --logLevel argument.
So, this is what I’m doing on my computer:
- Execute
hugo mod get -uto update all modules as usual (Doesn’t display and do anything) - Execute
hugo mod get -u --logLevel (insert any level)(Only display error from go itself) - Execute
hugo mod get -u github.com/FarrelF/stack-modifiedto update specified module (Success) - Execute
hugo mod tidyto tidy modules (Doesn’t display and do anything) - Execute
hugo mod tidy --logLevel (insert any level)(Same as point 4 and doesn’t display anything withlogLevel)
And, the following is from my GitHub Codespaces:
- Execute
hugo mod get -uto update all modules as usual (Doesn’t display and do anything) - Execute
hugo mod get -u --logLevel (insert any level)(Only display error from go itself) - Execute
hugo mod get -u github.com/FarrelF/stack-modifiedto update specified module (Success) - Execute
hugo mod tidyto tidy modules (Removesgithub.com/FarrelF/stack-modifiedmodule fromgo.modandgo.sum) - Execute
hugo mod tidy --logLevel (insert any level)(Same as point 4 and doesn’t display anything)
There is my public repository:
- Main Blog: GitHub - FarrelF/Blog: Kode Sumber dari Farrel Franqois Blog yang dibuat dengan Hugo, berbasis Go
- Modified Theme: GitHub - FarrelF/stack-modified: Tema hugo-stack-theme yang telah dimodifikasi untuk keperluannya sendiri
The following is my hugo env:
hugo v0.114.1-e9b716ad9869b79e7c374bbdae4daf5ee6406bd4+extended windows/amd64 BuildDate=2023-06-23T11:02:58Z VendorInfo=gohugoio
GOOS="windows"
GOARCH="amd64"
GOVERSION="go1.20.1"
github.com/sass/libsass="3.6.5"
github.com/webmproject/libwebp="v1.2.4"
github.com/sass/dart-sass/protocol="2.1.0"
github.com/sass/dart-sass/compiler="1.63.6"
github.com/sass/dart-sass/implementation="1.63.6"
And, my go version is:
go version go1.20.5 windows/amd64
I don’t know why I got different Go version from hugo env and go version command, even if I create new Codespaces from GitHub, I still get different Go version when I get latest version of Go from go version command. Is Go binary bundled in Hugo?
Is this bug? Or, is there something wrong with my configuration? I don’t change anything in my configuration file (except for re-enabling Arc that not much change), themes and I just add the heart handshake icon to my modified theme, so I can’t figured out of this issue.
Is this issue are related to `hugo mod get -u ./...` seems does not update all modules to latest version? I think it related to that issue, but perhaps there is another solution that I can do for this kind of problem.
Thank you for your help before ![]()