Move the mount duplicate filter to the modules package
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Wed, 31 Jul 2019 06:21:17 +0000 (08:21 +0200)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Wed, 31 Jul 2019 10:10:05 +0000 (12:10 +0200)
commit4b6c5eba306e6e69f3dd07a6c102bfc8040b38c9
treecf12d586dc4fc0937900b96b81e10a852eeeba6f
parentedf9f0a354e5eaa556f8faed70b5243b7273b35c
Move the mount duplicate filter to the modules package

Also simplify the mount validation logic. There are plenty of ways a user can create mount configs that behaves oddly.
hugolib/config.go
hugolib/filesystems/basefs.go
modules/client.go
modules/collect.go
modules/collect_test.go
modules/config.go