Skip to content

Conversation

@amorde
Copy link
Contributor

@amorde amorde commented Oct 22, 2025

  • Adds a new flag --bazel-index-store for providing a path to a global index store used by all modules compiled by Bazel
  • Adds logic to the Bazel rules to use the provided --bazel-index-store value to populate indexstores in the project config instead of populating with the list of module specific stores

This is motivated by #977 where a project with a large number of indexstore files will result in a crash due to the periphery process hitting a limit of open file descriptors.

Usage

For Bazel projects using rules_swift, enable the swift.use_global_index_store feature and then pass --bazel-index-store bazel-out/_global_index_store

Copy link
Contributor

@ileitch ileitch left a comment

Choose a reason for hiding this comment

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

Thanks for this! Just a few tweaks needed.

* Adds a new flag `--bazel-index-store` for providing a path to a global index store used by all modules compiled by Bazel
* Adds logic to the Bazel rules to use the provided `--bazel-index-store` value to populate `indexstores` in the project config instead of populating with the list of module specific stores
@amorde amorde force-pushed the amorde/bazel-global-index-store branch from 47032c5 to a11143c Compare October 27, 2025 16:56
@amorde amorde requested a review from ileitch October 27, 2025 16:58
@ileitch ileitch merged commit ad9efa0 into peripheryapp:master Nov 2, 2025
5 of 8 checks passed
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

Successfully merging this pull request may close these issues.

2 participants