Skip to content

Commit

Permalink
Fix --use-shipit
Browse files Browse the repository at this point in the history
Summary:
X-link: facebookincubator/zstrong#852

It was using the old PHP shipit script

Reviewed By: chadaustin

Differential Revision: D58013009

fbshipit-source-id: 97f0c31b897c04217ca5dd62fbe6cc2a55d280c8
  • Loading branch information
Simon Marlow authored and facebook-github-bot committed Jun 2, 2024
1 parent 8555af7 commit 0e1763e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build/fbcode_builder/getdeps/fetcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,7 @@ def get_src_dir(self):


class ShipitTransformerFetcher(Fetcher):
SHIPIT = "/var/www/scripts/opensource/shipit/run_shipit.php"
SHIPIT = "/var/www/scripts/opensource/codesync"

def __init__(self, build_options, project_name) -> None:
self.build_options = build_options
Expand All @@ -614,12 +614,13 @@ def run_shipit(self) -> None:
try:
if os.path.exists(tmp_path):
shutil.rmtree(tmp_path)
os.makedirs(os.path.dirname(tmp_path), exist_ok=True)

# Run shipit
run_cmd(
[
"php",
ShipitTransformerFetcher.SHIPIT,
"shipit",
"--project=" + self.project_name,
"--create-new-repo",
"--source-repo-dir=" + self.build_options.fbsource_dir,
Expand All @@ -628,7 +629,6 @@ def run_shipit(self) -> None:
"--skip-source-pull",
"--skip-source-clean",
"--skip-push",
"--skip-reset",
"--destination-use-anonymous-https",
"--create-new-repo-output-path=" + tmp_path,
]
Expand Down

0 comments on commit 0e1763e

Please sign in to comment.