Skip to content

Commit cbfc895

Browse files
authored
chore: bump minecode-pipelines version to 1.0.0 (#2170)
Signed-off-by: Jono Yang <jyang@nexb.com>
1 parent 45338fa commit cbfc895

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ android_analysis = [
118118
"android_inspector==0.2.0"
119119
]
120120
mining = [
121-
"minecode_pipelines==0.1.1"
121+
"minecode_pipelines==1.0.0"
122122
]
123123

124124
[project.urls]

scanpipe/pipes/federatedcode.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
import tempfile
2727
import textwrap
2828
from pathlib import Path
29+
from time import sleep
2930
from urllib.parse import urljoin
3031
from urllib.parse import urlparse
3132

@@ -194,7 +195,7 @@ def get_github_org(url):
194195
return org_name
195196

196197

197-
def create_repository(repo_name, clone_path, logger, shallow_clone=True):
198+
def create_repository(repo_name, clone_path, logger, shallow_clone=True, timeout=3):
198199
"""
199200
Create and initialize remote FederatedCode `repo_name` repository,
200201
perform local checkout, and return it.
@@ -222,6 +223,10 @@ def create_repository(repo_name, clone_path, logger, shallow_clone=True):
222223
timeout=5,
223224
)
224225
response.raise_for_status()
226+
227+
# sleep to allow github time to create the repo before we clone it
228+
sleep(timeout)
229+
225230
return clone_repository(
226231
repo_url=repo_url,
227232
clone_path=clone_path,

0 commit comments

Comments
 (0)