You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For various reasons, we do our builds it a temporary location. This means that anything that uses assert_snapshot gets the temporary location embedded into the binary via the env!("CARGO_MANIFEST_DIR"). Once we go onto trying to run the test binary produced during the build, it fails.
Having said that, we run the test binaries with sources (and so also with snapshots) available: therefore insta should be able to find the files but it insists on using manifest_dir for all its queries which is a location that doesn't exist.
It would be extremely useful to be able to tell insta at runtime of where it should try to find out the workspace metadata. For us this would just be pwd.
The text was updated successfully, but these errors were encountered:
For various reasons, we do our builds it a temporary location. This means that anything that uses
assert_snapshot
gets the temporary location embedded into the binary via theenv!("CARGO_MANIFEST_DIR")
. Once we go onto trying to run the test binary produced during the build, it fails.Having said that, we run the test binaries with sources (and so also with snapshots) available: therefore
insta
should be able to find the files but it insists on usingmanifest_dir
for all its queries which is a location that doesn't exist.It would be extremely useful to be able to tell insta at runtime of where it should try to find out the workspace metadata. For us this would just be
pwd
.The text was updated successfully, but these errors were encountered: