test: Add end-to-end Go prune and cache coverage (#13962)
<!-- CURSOR_AGENT_PR_BODY_BEGIN -->
### Description
Adds realistic Go end-to-end coverage for mixed repositories, dependency
isolation, local replacements, cache invalidation, checkout-stable
hashes, and executable pruned workspaces.
Closes TURBO-5965
### Testing Instructions
```bash
cargo test -p turbo --test go_workspace_test test_mixed_workspace_executes_and_caches_javascript_and_go_builds -- --exact --nocapture
cargo test -p turbo --test go_workspace_test test_go_hash_is_stable_across_equivalent_checkout_roots -- --exact --nocapture
cargo test -p turbo --test go_workspace_test test_go_cache_invalidates_every_north_star_input -- --exact --nocapture
cargo test -p turbo --test go_workspace_test test_go_prune_produces_minimal_valid_workspace -- --exact --nocapture
```
<!-- CURSOR_AGENT_PR_BODY_END -->
<div><a
href="https://cursor.com/agents/bc-93321fc5-6d9e-4a4a-b939-cfd623df17d1?cursor_ref=pr_footer&cursor_cta=open_in_web"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://cursor.com/assets/images/open-in-web-dark.png"><source
media="(prefers-color-scheme: light)"
srcset="https://cursor.com/assets/images/open-in-web-light.png"><img
alt="Open in Web" width="114" height="28"
src="https://cursor.com/assets/images/open-in-web-dark.png"></picture></a> <a
href="https://cursor.com/background-agent?bcId=bc-93321fc5-6d9e-4a4a-b939-cfd623df17d1&cursor_ref=pr_footer&cursor_cta=open_in_cursor"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://cursor.com/assets/images/open-in-cursor-dark.png"><source
media="(prefers-color-scheme: light)"
srcset="https://cursor.com/assets/images/open-in-cursor-light.png"><img
alt="Open in Cursor" width="131" height="28"
src="https://cursor.com/assets/images/open-in-cursor-dark.png"></picture></a> </div>
---------
Co-authored-by: Cursor Agent <cursoragent@cursor.com>