Skip to content

Commit

Permalink
Fix bcr_presubmit.py
Browse files Browse the repository at this point in the history
  • Loading branch information
meteorcloudy committed Nov 14, 2023
1 parent 3808e8b commit 3a408a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions buildkite/bazel-central-registry/bcr_presubmit.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 3a408a0

Please sign in to comment.