Make the "is this a Hugo Module" logic more lenient
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Tue, 3 Sep 2019 10:58:02 +0000 (12:58 +0200)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Tue, 3 Sep 2019 13:12:33 +0000 (15:12 +0200)
commit43298f028ccdf38e949b573d03d328bf96b998a3
tree9f42576866df3d26e2aee674c2e2c6d28d4efbcb
parent1b5c7e327c7f98cf8e9fff920f3328198f67a598
Make the "is this a Hugo Module" logic more lenient

Now we only try to load modules via Go if there is one or more modules imported in project config.

Fixes #6299
hugolib/config.toml [new file with mode: 0755]
hugolib/hugo_modules_test.go
modules/client.go
modules/collect.go
modules/config.go
modules/module.go