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

[2/y] Fix generator caching for multi-project setups #250

Merged

Conversation

andrewchang-bird
Copy link
Contributor

@andrewchang-bird andrewchang-bird commented Dec 24, 2021

Stack:
📚 #254 [6/y] Update example projects
📚 #253 [5/y] Improve support for configuring SPM Xcode projects
📚 #252 [4/y] Show help message no mockable types are generated
📚 #251 [3/y] Fix unavailable generic protocol mock initializer
📚 #250 ← [2/y] Fix generator caching for multi-project setups
📚 #249 [1/y] Optimize dependency graph traversal
📚 #245 Replace SwiftPM with Swift Argument Parser

Test target caching is currently done relative to the source project which causes improper invalidation when the source and test targets are in the same Xcode project. The downstream effect is that incremental Xcode builds are much slower for large projects since the generated mock file is “modified” each run.

This fixes the test target caching by using the environment-supplied project and srcroot values for the cache key.

Base automatically changed from dev/andrewchang-bird/optimize-dep-graph to master January 6, 2022 03:41
Test target caching is currently done relative to the source project
which causes improper invalidation when the source and test targets
are in the same Xcode project. The downstream effect is that incremental
Xcode builds are much slower for large projects since the generated mock
file is “modified” each run.

This fixes the test target caching by using the environment-supplied
project and srcroot values for the cache key.
@andrewchang-bird andrewchang-bird force-pushed the dev/andrewchang-bird/fix-multiproj-caching branch from 560e0d0 to e73c911 Compare January 6, 2022 04:21
@andrewchang-bird andrewchang-bird merged commit 158c78e into master Jan 6, 2022
@andrewchang-bird andrewchang-bird deleted the dev/andrewchang-bird/fix-multiproj-caching branch January 6, 2022 05:40
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