#62·go

Prevent recursion into output folder?

Author: ianrose14Created Jan 23, 2024Updated Oct 14, 2024

Hi!

I'm invoking like this:

gopages -out godocs/

from within the main directory of my project (e.g. the same directory as go.mod, etc)

I find that gopages seems to be re-reading its own output as new input? In other words, it is creating files like:

godocs/index.html godocs/src/wattch/godocs/index.html godocs/src/wattch/godocs/src/wattch/godocs/index.html godocs/src/wattch/godocs/src/wattch/godocs/src/wattch/godocs/index.html (etc)

After quite a long time, the program fails with this error:

Error generating page [...] file name too long

Can I somehow tell gopages to exclude/ignore the output directory?