summaryrefslogtreecommitdiffstats
path: root/testscripts/commands/mod_vendor.txt
blob: 20862c14e31c53088eb563098cdc0628f3fabaaa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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

require (
    github.com/gohugoio/hugo-mod-integrationtests/withconfigtoml v1.0.0 
    github.com/gohugoio/hugo-mod-integrationtests/withhugotoml v1.0.0
)

-- golden/vendor.txt --
# github.com/gohugoio/hugo-mod-integrationtests/withconfigtoml v1.0.0
# github.com/gohugoio/hugo-mod-integrationtests/withhugotoml v1.0.0