mod.txt - hugo - [fork] hugo port for 9front
 (HTM) git clone https://git.drkhsh.at/hugo.git
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) Submodules
 (DIR) README
 (DIR) LICENSE
       ---
       mod.txt (1145B)
       ---
            1 # Test the hugo mod commands.
            2 
            3 dostounix golden/vendor.txt
            4 dostounix golden/go.mod.testsubmod
            5 
            6 hugo mod graph
            7 stdout 'empty-hugo'
            8 hugo mod verify
            9 ! stderr .
           10 hugo mod get -u
           11 ! stderr .
           12 hugo mod get -u ./...
           13 ! stderr .
           14 hugo mod vendor
           15 ! stderr .
           16 cmp _vendor/modules.txt golden/vendor.txt
           17 hugo mod clean
           18 ! stderr .
           19 stdout 'hugo: removed 1 dirs in module cache for \"github.com/bep/empty-hugo-module\"'
           20 hugo mod clean --all
           21 # Currently this is 299 on MacOS and 301 on Linux.
           22 stdout 'Deleted (2|3)\d{2} files from module cache\.'
           23 cd submod
           24 hugo mod init testsubmod
           25 cmpenv go.mod $WORK/golden/go.mod.testsubmod
           26 hugo mod get -h
           27 stdout 'hugo mod get \[flags\] \[args\]'
           28 hugo mod get --help
           29 stdout 'hugo mod get \[flags\] \[args\]'
           30 -- hugo.toml --
           31 title = "Hugo Modules Test"
           32 [module]
           33 [[module.imports]]
           34 path="github.com/bep/empty-hugo-module"
           35 [[module.imports.mounts]]
           36 source="README.md"
           37 target="content/_index.md"
           38 -- go.mod --
           39 go 1.19
           40 
           41 module github.com/gohugoio/testmod
           42 -- submod/hugo.toml --
           43 title = "Hugo Sub Module"
           44 -- golden/vendor.txt --
           45 # github.com/bep/empty-hugo-module v1.0.0
           46 -- golden/go.mod.testsubmod --
           47 module testsubmod
           48 
           49 go ${GOVERSION}