Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bcr_presubmit.py #1786

Merged
merged 1 commit into from
Nov 14, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading