Holochain Forum

"Couldn't traverse DNA in directory" on default "hc init" app in v0.0.40-alpha1

How to reproduce:
- rust 1.38-nightly (2019-08-08) + target wasm32-unknown-unknown
- hc 0.0.40-alpha1 (installed not with holonix but with the command cargo install hc --force --git https://github.com/holochain/holochain-rust.git --tag v0.0.40-alpha1)

- create a new repo and cd into it with hc init some-app; cd some-app
- create a zome with hc generate zomes/zome1 rust-proc
- run hc package

The last lines of the compilation log are:

   Compiling zome1 v0.1.0 (/Users/me/src/github.com/pacio-core/some-app/zomes/zome1/code)
    Finished release [optimized] target(s) in 3m 19s
> wasm-gc target/wasm32-unknown-unknown/release/zome1.wasm
Error: Couldn't traverse DNA in directory "/Users/me/src/github.com/pacio-core/some-app": No such file or directory (os error 2)

Is this a known behavior ? If not, is there something I can try as a workaround ?

Edit: just confirmed the same happening:

  • with or without the rust-proc zome template
  • with 0.0.39-alpha4

you didn’t create a zome, did you?

although I just ran this without issue:

[nix-shell:~/holochain]$ hc init some-app; cd some-app; hc package
Created new Holochain project at: "some-app"
Created DNA package file at "/holochain/some-app/dist/some-app.dna.json"
DNA hash: <hash>

hmmm where are you running hc init some-app from?
This path src/github.com/pacio-core/hc-init looks a bit odd to me.

Sorry, I did create a zome with hc generate zomes/zome1 rust-proc, and forgot to mention it here
I’ll edit my post

My bad again, I tried twice, once naming the repo hc-init and another time naming it some-app.
And mixed those attempts into my question