Skip to content

fix(bazel): use python3 instead of perl for unzip_src patch_cmds - #273

Draft
tstapler wants to merge 1 commit into
mainfrom
fix/bazel-module-patch-python3
Draft

fix(bazel): use python3 instead of perl for unzip_src patch_cmds#273
tstapler wants to merge 1 commit into
mainfrom
fix/bazel-module-patch-python3

Conversation

@tstapler

Copy link
Copy Markdown
Owner

Summary

  • Swaps the perl -pi -e in-place edit in MODULE.bazel's unzip_src patch_cmds for an equivalent python3 -c command, at Tyler's request.
  • Same guard logic (wraps the K&R-style gmtime()/localtime() declarations in #if !defined(__GLIBC__) && !defined(linux)), just a different portable interpreter.

Test plan

  • bazel clean --expunge then bazel build @unzip_src//:unzip from cold — genuine 28-action fetch → patch → compile (ubz2err.c) → link, zero cache hits, build succeeded.
  • CI green on this PR

perl isn't guaranteed present on every CI runner image; python3 is
preinstalled on both macOS and Linux runners and performs the same
portable in-place edit without BSD sed's -i quirks.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant