bazelbuild / bazelbuild/bazel-toolchains

Generated BUILD files have `ug+x` bit set. Intentional? If so, why?

Open
#1,037 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
202
Forks
100
PR merge metrics
No merged PRs in 30d

Description

The generated BUILD files `config/BUILD` and `java/BUILD` are executable. Same with the `LICENCE` file. Is this intentional?

```console
$ tree -p my_config/
[drwxr-x---] my_config/
├── [drwxr-x---] cc
│   ├── [-rw-r-----] armeabi_cc_toolchain_config.bzl
│   ├── [-rw-r-----] BUILD
│   ├── [-rw-r-----] builtin_include_directory_paths
│   ├── [-rw-r-----] cc_toolchain_config.bzl
│   ├── [-rw-r-----] cc_wrapper.sh
│   ├── [-rw-r-----] module.modulemap
│   ├── [-rw-r-----] REPO.bazel
│   ├── [drwxr-x---] tools
│   │   └── [drwxr-x---] cpp
│   │   └── [-rw-r-----] empty.cc
│   └── [-rw-r-----] WORKSPACE
├── [drwxr-x---] config
│   └── [-rwxr-x---] BUILD
├── [drwxr-x---] java
│   └── [-rwxr-x---] BUILD
└── [-rwxr-x---] LICENSE
```

Contributor guide

Open the contributing guide

Research direction

Start by inspecting the generated config/BUILD and java/BUILD files and compare their permissions with the other generated files shown in the report. Trace how these files and LICENSE are produced, then determine whether the executable bits are intentional; done means the behavior is corrected or documented with a clear rationale.

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.