# Module dir itself is a symlink.
[windows] skip
ln $WORK/secret site/themes/evil/_vendor/github.com/foo/bar
cd site
! hugo
stderr 'symlinks are not allowed'
! exists public/index.html

-- secret/layouts/home.html --
FROMSECRET
-- secret/hugo.toml --
-- site/hugo.toml --
theme = "evil"
disableKinds = ["taxonomy","term","rss","sitemap","robotsTXT","page","section"]
-- site/themes/evil/hugo.toml --
[[module.imports]]
path = "github.com/foo/bar"
-- site/themes/evil/_vendor/modules.txt --
# github.com/foo/bar v0.0.0
-- site/themes/evil/_vendor/github.com/foo/.keep --
