Skip to content

Commit a262097

Browse files
committed
fix paths
1 parent b1c3e6f commit a262097

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

gitbug-java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,10 @@ class GitBugJavaCli(object):
103103

104104
def __setup_act_cache(self, name: str, download_url: str):
105105
# Download the zip
106-
act_cache = Path(f"{name}.zip")
106+
zip_path = Path(get_project_root(), "act-cache.zip")
107107
if not act_cache.exists():
108-
self.__download(download_url, act_cache)
108+
self.__download(download_url, zip_path)
109109
# Extract the zip
110-
zip_path = Path(get_project_root(), "act-cache.zip")
111110
cache_path = Path(get_project_root(), "act-cache")
112111
cache_path.mkdir(parents=True, exist_ok=True)
113112
with zipfile.ZipFile(zip_path, "r") as zip_ref:
@@ -160,7 +159,7 @@ class GitBugJavaCli(object):
160159
self,
161160
workdir: str,
162161
output: str = "report",
163-
act_cache_dir: Optional[str] = "./act-cache",
162+
act_cache_dir: Optional[str] = f"{get_project_root()}/act-cache",
164163
timeout: int = 0,
165164
) -> bool:
166165
"""

0 commit comments

Comments
 (0)