Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
I was trying to make a portable GitHub type of repo with render hooks and tried this:
[module] [[module.mounts]] source = "README.md" target = "content/_index.md"
Error building site: process: readAndProcessContent: walk: Readdir: fdopendir: not a directory
OK, I've labeled this with Enhancement, but testing this it borderlines bug(s). The "file mount" was, I'll admit, accidental -- but very useful The main scope was mounting of directories.
The reason this come up now is https://github.com/bep/portable-hugo-links -- I have a WIP patch for this, but I'll need to test this some more (and add some more unit tests for it to make sure it works for more than the above case).
Actually it seems it currently works for us; it just fails with nested "empty" folders. So if the target folder exists, it works, but if not, it does fail silently.
This works for us right now:
This is the only thing missing so that we switch to Hugo to handle copying all of all doc assets. I have a WIP PR twbs/bootstrap#29283
PS. I hope we are talking about the same thing; it's NYE and you know how it goes :)