mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-14 20:33:59 +02:00
Fix so hugo get -u updates transitively
This commit is contained in:
15
testscripts/commands/mod_get.txt
Normal file
15
testscripts/commands/mod_get.txt
Normal file
@@ -0,0 +1,15 @@
|
||||
hugo mod get
|
||||
stderr 'withhugotoml.*v1.1.0'
|
||||
|
||||
-- hugo.toml --
|
||||
title = "Hugo Modules Test"
|
||||
[module]
|
||||
[[module.imports]]
|
||||
path="github.com/gohugoio/hugo-mod-integrationtests/withconfigtoml"
|
||||
disable = true
|
||||
[[module.imports]]
|
||||
path="github.com/gohugoio/hugo-mod-integrationtests/withhugotoml"
|
||||
-- go.mod --
|
||||
module foo
|
||||
go 1.20
|
||||
|
20
testscripts/commands/mod_get_u.txt
Normal file
20
testscripts/commands/mod_get_u.txt
Normal file
@@ -0,0 +1,20 @@
|
||||
hugo mod get -u
|
||||
hugo mod graph
|
||||
stdout 'commonmod@v1.0.1.*commonmod2@v1.0.2'
|
||||
|
||||
-- hugo.toml --
|
||||
title = "Hugo Modules Update Test"
|
||||
[module]
|
||||
[[module.imports]]
|
||||
path="github.com/gohugoio/hugo-mod-integrationtests/withconfigtoml"
|
||||
disable = true
|
||||
[[module.imports]]
|
||||
path="github.com/gohugoio/hugo-mod-integrationtests/withhugotoml"
|
||||
-- go.mod --
|
||||
module foo
|
||||
go 1.20
|
||||
require (
|
||||
github.com/gohugoio/hugo-mod-integrationtests/withhugotoml v1.1.0 // indirect
|
||||
github.com/gohugoio/hugo-mod-integrationtests/commonmod v0.0.0-20230823103305-919cefe8a425 // indirect
|
||||
)
|
||||
|
Reference in New Issue
Block a user