hugo icon indicating copy to clipboard operation
hugo copied to clipboard

hugo mod get -u ./... seems only updates modules of the first folder.

Open razonyang opened this issue 1 year ago • 0 comments

What version of Hugo are you using (hugo version)?

$ hugo version
hugo v0.128.0-e6d2712ee062321dc2fc49e963597dd5a6157660+extended linux/amd64 BuildDate=2024-06-25T16:15:48Z VendorInfo=gohugoio

Does this issue reproduce with the latest release?

Yes

Reproduce Steps

$ git clone -b mod-get-recursive [email protected]:razonyang/hugo-testing

$ cd hugo-testing

$ tree 
.
├── bar
│   ├── go.mod
│   ├── go.sum
│   └── hugo.yaml
├── foo
│   ├── go.mod
│   ├── go.sum
│   └── hugo.yaml
├── go.mod
├── go.sum
└── hugo.yaml

3 directories, 9 files

$ hugo mod get -u ./...
Update module in /tmp/hugo-testing/bar
go: added github.com/krisk/Fuse v7.0.0+incompatible
hugo: downloading modules …
go: added github.com/hugomods/icons v0.6.4
go: added github.com/twbs/icons v1.11.3
hugo: collected modules in 10232 ms
go: upgraded github.com/hugomods/search v0.1.0 => v0.14.0
go: upgraded github.com/hugomods/icons/vendors/bootstrap v0.5.4 => v0.5.7
Update module in /tmp/hugo-testing/foo
Update module in /tmp/hugo-testing

I noticed there are info about updating modules of rest of folders, but nothing happen, so I entered the rest of folders and execute hugo mod get -u to confirm.

Update module in /tmp/hugo-testing/foo
Update module in /tmp/hugo-testing
$ cd foo
$ hugo mod get -u
go: upgraded github.com/hugomods/echarts v0.1.0 => v0.1.3
go: upgraded github.com/hugomods/base v0.5.0 => v0.7.2
go: upgraded github.com/hugomods/apache-echarts v5.5.0+incompatible => v5.5.1+incompatible

$ cd ../
$ hugo mod get -u
go: upgraded github.com/hugomods/images v0.1.0 => v0.11.0

$ git status
...
	modified:   bar/go.mod
	modified:   bar/go.sum
	modified:   foo/go.mod
	modified:   foo/go.sum
	modified:   go.mod
	modified:   go.sum
...

razonyang avatar Jun 27 '24 11:06 razonyang