Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build twice in Windows #832

Open
Xu-Mj opened this issue Jul 28, 2024 · 1 comment
Open

Build twice in Windows #832

Xu-Mj opened this issue Jul 28, 2024 · 1 comment

Comments

@Xu-Mj
Copy link
Contributor

Xu-Mj commented Jul 28, 2024

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

@ctron
Copy link
Collaborator

ctron commented Aug 2, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants