From 3a408a096234f610c251f57cece7e5cf1d6b626a Mon Sep 17 00:00:00 2001 From: Yun Peng Date: Tue, 14 Nov 2023 10:49:45 +0100 Subject: [PATCH] Fix bcr_presubmit.py --- buildkite/bazel-central-registry/bcr_presubmit.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/buildkite/bazel-central-registry/bcr_presubmit.py b/buildkite/bazel-central-registry/bcr_presubmit.py index dd42ff76a0..2fe8c9c606 100755 --- a/buildkite/bazel-central-registry/bcr_presubmit.py +++ b/buildkite/bazel-central-registry/bcr_presubmit.py @@ -156,7 +156,7 @@ def scratch_file(root, relative_path, lines=None, mode="w"): def create_simple_repo(module_name, module_version): """Create a simple Bazel module repo which depends on the target module.""" - root = bazelci.get_repositories_root() + root = pathlib.Path(bazelci.get_repositories_root()) scratch_file(root, "WORKSPACE") scratch_file(root, "BUILD") # 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): def prepare_test_module_repo(module_name, module_version): """Prepare the test module repo and the presubmit yml file it should use""" bazelci.print_collapsed_group(":information_source: Prepare test module repo") - root = bazelci.get_repositories_root() + root = pathlib.Path(bazelci.get_repositories_root()) source = load_source_json(module_name, module_version) # Download and unpack the source archive to ./output