mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-10 19:54:08 +02:00
commands: Ignore "module does not exist" errors in hugo mod init
Closes #11458
This commit is contained in:
15
testscripts/commands/mod_init.txt
Normal file
15
testscripts/commands/mod_init.txt
Normal file
@@ -0,0 +1,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 ${GOVERSION}
|
Reference in New Issue
Block a user