Skip to content

Commit 0924f30

Browse files
meteorcloudyfweikert
authored andcommitted
Fix bcr_presubmit.py (bazelbuild#1786)
Fixes bazelbuild#1785
1 parent dd7bbd8 commit 0924f30

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

buildkite/bazel-central-registry/bcr_presubmit.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ def scratch_file(root, relative_path, lines=None, mode="w"):
156156

157157
def create_simple_repo(module_name, module_version):
158158
"""Create a simple Bazel module repo which depends on the target module."""
159-
root = bazelci.get_repositories_root()
159+
root = pathlib.Path(bazelci.get_repositories_root())
160160
scratch_file(root, "WORKSPACE")
161161
scratch_file(root, "BUILD")
162162
# TODO(pcloudy): Should we test this module as the root module? Maybe we do if we support dev dependency.
@@ -213,7 +213,7 @@ def unpack_archive(archive_file, output_dir):
213213
def prepare_test_module_repo(module_name, module_version):
214214
"""Prepare the test module repo and the presubmit yml file it should use"""
215215
bazelci.print_collapsed_group(":information_source: Prepare test module repo")
216-
root = bazelci.get_repositories_root()
216+
root = pathlib.Path(bazelci.get_repositories_root())
217217
source = load_source_json(module_name, module_version)
218218

219219
# Download and unpack the source archive to ./output

0 commit comments

Comments
 (0)