diff options
author | Razon Yang <[email protected]> | 2023-10-22 22:32:01 +0800 |
---|---|---|
committer | GitHub <[email protected]> | 2023-10-22 16:32:01 +0200 |
commit | de4e466036026e9a5805155f00882b93267231b5 (patch) | |
tree | 804b6f73073205d3e23897cd32b4768d77e8c3c5 /testscripts | |
parent | c23a0c4a0f468c718f6783b3498d0aa9801d00bf (diff) | |
download | hugo-de4e466036026e9a5805155f00882b93267231b5.tar.gz hugo-de4e466036026e9a5805155f00882b93267231b5.zip |
Fix so hugo get -u updates transitively
Diffstat (limited to 'testscripts')
-rw-r--r-- | testscripts/commands/mod_get.txt | 15 | ||||
-rw-r--r-- | testscripts/commands/mod_get_u.txt | 20 |
2 files changed, 35 insertions, 0 deletions
diff --git a/testscripts/commands/mod_get.txt b/testscripts/commands/mod_get.txt new file mode 100644 index 000000000..d11d3b817 --- /dev/null +++ b/testscripts/commands/mod_get.txt @@ -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 + diff --git a/testscripts/commands/mod_get_u.txt b/testscripts/commands/mod_get_u.txt new file mode 100644 index 000000000..b070309e0 --- /dev/null +++ b/testscripts/commands/mod_get_u.txt @@ -0,0 +1,20 @@ +hugo mod get -u +hugo mod graph +stdout '[email protected].*[email protected]' + +-- 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 +) + |