Remove symlinks
Before you build your module, you must make sure that symlinks are either removed or set to be ignored. If you try to build a module with symlinks, you will receive the following error:
Warning: Symlinks in modules are unsupported. Please investigate symlink manifests/foo.pp->manifests/init.pp.
Error: Found symlinks. Symlinks in modules are not allowed, please remove them.
Error: Try 'puppet help module build' for usage
From puppet docs:
https://docs.puppetlabs.com/puppet/latest/reference/modules_publishing.html#remove-symlinks