diff options
author | Bjørn Erik Pedersen <[email protected]> | 2023-07-08 12:25:53 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2023-07-08 16:08:46 +0200 |
commit | 0f921ace6f897ba63cdcce7a0ef59c9c615920bd (patch) | |
tree | 11c7d1138540e75d8a235539fe62bd568448f010 /testscripts | |
parent | 6019953769741d3ec0b48aa16b2a6cc06a93f5ba (diff) | |
download | hugo-0f921ace6f897ba63cdcce7a0ef59c9c615920bd.tar.gz hugo-0f921ace6f897ba63cdcce7a0ef59c9c615920bd.zip |
Fix hugo mod vendor for modules with hugo.toml
Fixes #11221
Diffstat (limited to 'testscripts')
-rw-r--r-- | testscripts/commands/mod_vendor.txt | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/testscripts/commands/mod_vendor.txt b/testscripts/commands/mod_vendor.txt new file mode 100644 index 000000000..8a77776b3 --- /dev/null +++ b/testscripts/commands/mod_vendor.txt @@ -0,0 +1,24 @@ +dostounix golden/vendor.txt + +hugo mod vendor +cmp _vendor/modules.txt golden/vendor.txt +ls _vendor/github.com/gohugoio/hugo-mod-integrationtests/withconfigtoml +stdout 'config.toml' +ls _vendor/github.com/gohugoio/hugo-mod-integrationtests/withhugotoml +stdout 'hugo.toml' + + +-- hugo.toml -- +title = "Hugo Modules Test" +[module] +[[module.imports]] +path="github.com/gohugoio/hugo-mod-integrationtests/withconfigtoml" +[[module.imports]] +path="github.com/gohugoio/hugo-mod-integrationtests/withhugotoml" +-- go.mod -- +go 1.19 + +module github.com/gohugoio/testmod +-- golden/vendor.txt -- +# github.com/gohugoio/hugo-mod-integrationtests/withconfigtoml v1.0.0 +# github.com/gohugoio/hugo-mod-integrationtests/withhugotoml v1.0.0 |