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

Add scip/lsif flag to exclude vendored libaries #17900

Merged
merged 1 commit into from
Aug 16, 2024

Conversation

darichey
Copy link
Contributor

#17809 changed StaticIndex to include vendored libraries. This PR adds a flag to disable that behavior.

At work, our monorepo has too many rust targets to index all at once, so we split them up into several shards. Since all of our libraries are vendored, if rust-analyzer includes them, sharding no longer has much benefit, because every shard will have to index the entire transitive dependency graphs of all of its targets. We get around the issue presented in #17809 because some other shard will index the libraries directly.

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Aug 15, 2024
Copy link
Contributor

@davidbarsky davidbarsky left a comment

Choose a reason for hiding this comment

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

looks good to me, modulo a single comment

crates/ide/src/static_index.rs Outdated Show resolved Hide resolved
@darichey darichey force-pushed the exclude-vendored-libraries branch from 30e1ece to e257b98 Compare August 15, 2024 22:00
Copy link
Contributor

@davidbarsky davidbarsky left a comment

Choose a reason for hiding this comment

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

lgtm; i'll merge this.

@davidbarsky
Copy link
Contributor

@bors r+

@bors
Copy link
Contributor

bors commented Aug 16, 2024

📌 Commit e257b98 has been approved by davidbarsky

It is now in the queue for this repository.

@bors
Copy link
Contributor

bors commented Aug 16, 2024

⌛ Testing commit e257b98 with merge 7f77e09...

@bors
Copy link
Contributor

bors commented Aug 16, 2024

☀️ Test successful - checks-actions
Approved by: davidbarsky
Pushing 7f77e09 to master...

@bors bors merged commit 7f77e09 into rust-lang:master Aug 16, 2024
11 checks passed
@darichey darichey deleted the exclude-vendored-libraries branch August 16, 2024 15:34
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.

4 participants