Skip to content

Commit

Permalink
Release fix: corelib detection in tests (#1613)
Browse files Browse the repository at this point in the history
  • Loading branch information
Arcticae authored Mar 15, 2023
1 parent 77ec0d1 commit 0bef7ef
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions protostar/commands/test/test_command.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import os
from argparse import Namespace
from pathlib import Path
from typing import List, Optional
Expand Down Expand Up @@ -211,6 +212,10 @@ async def test(
include_paths.append(
str(self._protostar_directory.protostar_cairo1_corelib_path)
)
# FIXME: this is a temporary fix for corelib detection, bindings need to consume this value explicitly
os.environ["CARGO_MANIFEST_DIR"] = str(
self._protostar_directory.protostar_cairo1_corelib_path.resolve()
)
else:
include_paths.append(
str(self._protostar_directory.protostar_test_only_cairo_packages_path)
Expand Down

0 comments on commit 0bef7ef

Please sign in to comment.