I currently having an issue related to symlinks, bu actually I can’t really understand why - it’s not used or read by Hugo (at least not on purpose). It’s just sitting in a theme directory.
Certainly I’m just not able to formulate a specific query, but in my theme I have a package.hugo.json but can’t get yarn to just work with this file. It always tries package.json. If it can’t find it it uses the one from a parent directory, which is the one for the site. Using --cwd one can limit this behaviour but since the name isn’t package.json. The obvious solution is a symlink: ln -s package.hugo.json package.json …
But this breaks Hugo:
Error: add site dependencies: create deps: create PathSpec: build filesystems: create main fs: symlinks not allowed in this filesystem
I could understand this, if hugo server would report this due to the watcher, but I can’t see any reason why a normal build even checks this file…
Am I missing something here, would using NPM instead of Yarn provide a workaround?
Your assumption is right - it’s just this link. And that’s the reason why I was asking, neither should Hugo check this file nor is it pointing outside of the directory of the specific theme…
Anyways, I consider using cp a workaround, not a solution.
Since this isn’t my first problem with the experimantelhugo mod npm pack (the other being 8319) I’ll stop trying to keep my theme compatible with this mechanism. How about some sort of an umbrella issue on GitHub to collect possible improvements to hugo mod npm pack?