chore(toolchain): remove chmod and disable ignore_root_error by aignas · Pull Request #3421 · bazel-contrib/rules_python

added 14 commits

November 21, 2025 08:55
…s and use our shell script to update deleted pkgs

@aignas aignas marked this pull request as ready for review

November 22, 2025 06:05

@aignas

aignas added a commit to aignas/rules_python that referenced this pull request

Nov 22, 2025
Summary:
- Before this we were relying on an upstream script, but because
  how we are building our docs we need to customize how it is working.
- What is more, the format was hard to maintain and prone to human errors.

Split out of bazel-contrib#3421

@aignas

rickeylev

github-merge-queue bot pushed a commit that referenced this pull request

Nov 22, 2025
Before this we were relying on an upstream script, but because how we
are building our docs we need to customize how it is working. What is
more, the format was hard to maintain and prone to human errors.

This splits out the deleted packages code into a separate rc file that
is much easier to work with.

Split out of #3421

@aignas

@aignas aignas deleted the aignas.chore.remove-root-error-and-chmod branch

November 23, 2025 00:38

EdwinKempin pushed a commit to GerritCodeReview/gerrit that referenced this pull request

Jan 10, 2026
When building Gerrit on MacOS and bazel mods, the build may fail with:
"Error in fail: Failed to make interpreter installation read-only.
'chmod' error msg"

The error happens when trying to perform a chmod of the Python lib,
which the current user may not have permission to change.

Relaxing the ignore_root_user_error flag solves the problem.

The associated Bazel issue at [1] and has later fixed with [2].

[1] bazel-contrib/rules_python#2016
[2] bazel-contrib/rules_python#3421

Release-Notes: skip
Change-Id: I326025b80a644a2a485ee936b4cfe1429d9d81f2