Skip to content

tools: fix shared file merging and bazel-registry SHA sync in updater - #1646

Merged
fei-deng merged 1 commit into
envoyproxy:mainfrom
tomjzzhang:fix-updater-copy-and-patch-shared-files
Oct 27, 2026
Merged

fei-deng merged 1 commit into
envoyproxy:mainfrom
tomjzzhang:fix-updater-copy-and-patch-shared-files

Conversation

@tomjzzhang

Copy link
Copy Markdown
Contributor

Pre-align .bazelrc bazel-registry SHA and preserve trailing newlines in PATCH_SHARED_FILES:

  • Pre-aligns the pinned envoyproxy/bazel-registry commit hash in Nighthawk's .bazelrc with base_content (current_envoy_commit) before running git merge-file so prior manual/intermediate registry bumps do not trigger spurious 3-way merge conflicts on the registry line.
  • Appends "\n" after _run_command(["git", "show", ...]) (since _run_command strips trailing whitespace) so git merge-file does not strip trailing newlines at EOF.
  • Collects all conflicted_files across SHARED_FILES before raising RuntimeError instead of aborting on the first conflicted file.

- Pre-align .bazelrc bazel-registry SHA with base_content before running git merge-file and sync to target_content afterward.
- Preserve trailing newlines on temp files passed to git merge-file.
- Collect all conflicted_files across SHARED_FILES before raising.

Signed-off-by: tomjzzhang <4367421+tomjzzhang@users.noreply.github.com>
@tomjzzhang tomjzzhang added the waiting-for-review A PR waiting for a review. label Oct 27, 2026
@tomjzzhang
tomjzzhang requested a review from fei-deng October 27, 2026 18:33
@fei-deng
fei-deng requested a review from jiajunye October 27, 2026 19:38
@jiajunye

Copy link
Copy Markdown
Contributor

LGTM

@jiajunye jiajunye removed the waiting-for-review A PR waiting for a review. label Oct 27, 2026
@fei-deng
fei-deng merged commit 10243cd into envoyproxy:main Oct 27, 2026
9 checks passed
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.

3 participants