Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
**What type of PR is this?** > Feature **What does this PR do? Why is it needed?** //:cgo_context_data is in the dependency closure of pure go_binary targets. This PR adds a config_setting to detect when //go/config:pure is set to True and updates the places where //:cgo_context_data is selected. **Which issues(s) does this PR fix?** Fixes #4145 **Other notes for review** No breaking tests have been added, but the functionality can be seen on the pure targets in the test folder. e.g. ``` bazel cquery "somepath(//tests/core/go_binary:static_pure_bin, //:cgo_context_data)" INFO: Analyzed 2 targets (0 packages loaded, 0 targets configured). INFO: Found 2 targets... INFO: Empty query results INFO: Elapsed time: 0.097s, Critical Path: 0.00s INFO: 0 processes. INFO: Build completed successfully, 0 total actions ``` --------- Co-authored-by: Connor McEntee <[email protected]>
- Loading branch information