bazel-contrib / bazel-contrib/rules_go
Bazel 7: cgo actions should depends on apple_support
- Dominant language
- Go
- Stars
- 1.5k
- Forks
- 762
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 12
Description
Context:
- https://bazelbuild.slack.com/archives/CD3QY5C2X/p1703173291572179
- https://github.com/bazelbuild/bazel/issues/20638
- https://github.com/bazelbuild/apple_support/blob/master/doc/apple_support.md
It seems like the Unix CC toolchain no longer automatically detects the local Xcode version to set up the right include paths on MacOS(Darwin) builds.
The suggested solution is for rule sets to depend on apple_support when execution is built on the MacOS platform so that appropriate XCode env variables are set correctly.
Contributor guide
Research direction
Start by reviewing the cgo action and Unix CC toolchain setup for Darwin builds, then read the linked apple_support documentation and Bazel issue for the expected Xcode environment variables. Verify the change against a MacOS build that uses the local Xcode include paths.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100