trunk icon indicating copy to clipboard operation
trunk copied to clipboard

Build twice in Windows

Open Xu-Mj opened this issue 1 year ago • 1 comments
trafficstars

Trunk will build twice in most circumstances, such as in 8 out of 10 cases

I tried to use verbose log mod, but it is too verbose, making it difficult to find any usefull messages

info log: image

Xu-Mj avatar Jul 28 '24 02:07 Xu-Mj

Builds are being triggered by changes in the filesystem. Depending on your setup, it might be that the build changes a watched file, which leads to another build. There some logic in there, filtering out events in such cases, which might lead to an infinite build loop. However, that would still lead to two builds, in order to not miss any actual change.

You can make trunk more verbose (adding more -vs) and see what file/event triggers that build. You can then add such directories/files to the ignore list.

ctron avatar Aug 02 '24 07:08 ctron