Hugo build with destination options creates directory in a loop

I am currently trying out hugo to build our CICD for our Documentation Team.

When building hugo with the option --destination, it creates the directory multiple times.

This hangs

hugo -b http://localhost:1313/docs/v1/ --destination static/docs/v1/
Start building sites … 
hugo v0.125.7-b1d808bc373f53ad37c8966bb02a6aea095db5f8+extended windows/amd64 BuildDate=2024-05-08T14:46:24Z VendorInfo=gohugoio

When i check ./static/docs/v1/, it created multiple directories of docs/v1/ inside static/docs/v1/
ls -l static/docs/v1/docs/v1/docs/v1/docs/v1/docs/v1/docs/v1/docs/v1/docs/v1/docs/v1/docs/v1/docs/v1/docs/
this goes on until it crashes with an error of file name too long.

The static folder is special to hugo

All content from static is copied verbatim to your site.
Due to the concurrency this will pick up your rendered pages from static wich ends up in recursion.

Use --destination public/docs/v1 instead