Skip to content

Commit

Permalink
bcr_presubmit: Prevent patch command line tool from asking questions (b…
Browse files Browse the repository at this point in the history
  • Loading branch information
meteorcloudy authored and fmeum committed Dec 10, 2023
1 parent 92fce7b commit d87c41f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion buildkite/bazel-central-registry/bcr_presubmit.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ def load_source_json(module_name, module_version):
def apply_patch(work_dir, patch_strip, patch_file):
# Requires `patch` to be installed, this is true for all Bazel CI VMs, including Windows VMs.
subprocess.run(
["patch", "-p%d" % patch_strip, "-i", patch_file], shell=False, check=True, env=os.environ, cwd=work_dir
["patch", "-f", "-p%d" % patch_strip, "-i", patch_file], shell=False, check=True, env=os.environ, cwd=work_dir
)


Expand Down

0 comments on commit d87c41f

Please sign in to comment.