Skip to content

Conversation

@ChayimFriedman2
Copy link
Contributor

That is /excluded is excluded, and /excluded/project is the project.

That is `/excluded` is excluded, and `/excluded/project` is the project.
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Dec 31, 2025
It's a common practice to put `include!()`d files there.

Previously it was just ignored, but now we respect the exclude which causes trouble.
@ChayimFriedman2
Copy link
Contributor Author

Fixed the bug; see the second commit.

Copy link
Member

@ShoyuVanilla ShoyuVanilla left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree that not excluding ./target/ by default is the correct choice, as stated in the commit message. Excluding it would be even quite incorrect, since it is hard-coded rather than respecting the cargo config.

That said, I'm a bit concerned that this could overwhelm our vfs or project discovery in cases where large projects are cloned inside the target directory 😅

@Veykril
Copy link
Member

Veykril commented Jan 3, 2026

I am actually surprised we had target excluded to be honest 🤔

That said, I'm a bit concerned that this could overwhelm our vfs or project discovery in cases where large projects are cloned inside the target directory 😅

Yea that might cause issues to be fair. Can we exclude target but re-include the relevant subdirectories? (that is target/<profile>/build) To slight reduce this risk

@ChayimFriedman2
Copy link
Contributor Author

To be clear; target was already not excluded; the bug in the code prevented it from being.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants