File: mod_init.txt

package info (click to toggle)
hugo 0.157.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 43,672 kB
  • sloc: javascript: 31,888; ansic: 2,350; xml: 350; makefile: 195; sh: 110
file content (15 lines) | stat: -rw-r--r-- 317 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# Test the hugo init command.
dostounix golden/go.mod.testsubmod

hugo mod init testsubmod
cmpenv go.mod $WORK/golden/go.mod.testsubmod

-- hugo.toml --
title = "Hugo Modules Test"
[module]
[[module.imports]]
path="github.com/bep/empty-hugo-module"
-- golden/go.mod.testsubmod --
module testsubmod

go ${GOMODVERSION}