bazel-contrib / bazel-contrib/rules_foreign_cc

Incompatible with remote exec via bazel-buildfarm

Open
#783 2 comments 1 reaction 0 assignees View on GitHub
Dominant language
Starlark
Stars
737
Forks
270
PR merge metrics
No merged PRs in 30d

Description

rules_foreign_cc fails on bazel-buildfarm workers. bazel-buildfarm enforces that inputs are read-only and directories are read/execute only. When rules_foreign_cc copies the directory tree, the permissions are preserved and subsequent ./configure commands that attempt to write Makefiles into these read-only directories will fail.

Contributor guide

Open the contributing guide

Research direction

Start by locating the rules_foreign_cc logic that copies the input directory tree and trace how preserved permissions affect the subsequent ./configure step. Reproduce the failure on a bazel-buildfarm worker, then verify that configure can write Makefiles in the copied directories while the original inputs remain read-only.

Written by the indexing model from the issue text.

Assessment

Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 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.