mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-27 06:00:25 +03:00
commands: Ignore "module does not exist" errors in hugo mod init
Closes #11458
This commit is contained in:
parent
c260cb28a9
commit
e363964f2f
10 changed files with 92 additions and 50 deletions
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}
|
Loading…
Add table
Add a link
Reference in a new issue