Skip to content

Commit

Permalink
bcr_presubmit: Prevent patch command line tool from asking questions (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
meteorcloudy authored Dec 22, 2022
1 parent 1d5aecd commit 1f2d17f
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 1f2d17f

Please sign in to comment.