bazel-contrib / bazel-contrib/rules_go

Bazel 7: cgo actions should depends on apple_support

Open
#3,793 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.