A2-ai / dvs

Other
1 stars 0 forks source link

dvs_init panic to error #9

Closed dpastoor closed 5 months ago

dpastoor commented 5 months ago

eg run dvs_init from somewhere other than the repo:

image

dpastoor commented 5 months ago

to demonstrate a snippet of code and the behavior making sure its run in a non-git dir:

> withr::with_dir("/tmp", dvs_init("/tmp/test"))
thread '<unnamed>' panicked at /cluster-data/user-homes/devin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/extendr-api-0.6.0/src/robj/into_robj.rs:64:13:
called `Result::unwrap()` on an `Err` value: Other("git repository not found: make sure you're in an active git repository. could not find git repo root; make sure you're in an active git repository: .")
Error in dvs_init_impl(storage_directory, permissions, group) : 
  user function panicked: dvs_init_impl
thread '<unnamed>' panicked at src/lib.rs:48:1:
explicit panic
> packageVersion("dvs")
[1] ‘0.0.1’
dpastoor commented 5 months ago

image

coming along...