Skip to content

Commit a5fc472

Browse files
jfrocheyvan-sraka
authored andcommitted
fix(github-matrix): backward compatibility for Result access
We are running an older version of the 'result' library that uses '_value' instead of 'ok_value' to access the successful result of a computation.
1 parent 7992f43 commit a5fc472

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nix/packages/github-matrix/github_matrix.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,8 @@ def run_nix_eval_jobs(
182182
result = parse_nix_eval_line(line, drv_paths)
183183
if result.is_err():
184184
errors_list.append(result.err_value)
185-
elif result.ok_value is not None:
186-
packages.append(result.ok_value)
185+
elif result._value is not None:
186+
packages.append(result._value)
187187

188188
# Parse stderr for warnings (lines starting with "warning:")
189189
warnings_list: List[str] = []

0 commit comments

Comments
 (0)