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

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

Closed
razonyang opened this issue Jun 27, 2024 · 1 comment
Closed

Comments

@razonyang
Copy link
Contributor

razonyang commented Jun 27, 2024

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 git@github.com: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
...
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 28, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants