Open harlantwood opened 4 years ago
I solved this by adding: ~/.cargo/config
configuration that looks like:
[net] git-fetch-with-cli = true
which will instruct Cargo to fetch git repositories with the
git
CLI rather than with libgit2. Using this will read.ssh/config
because that's whatgit
does.
-- from https://github.com/rust-lang/cargo/issues/2078#issuecomment-434388584
Feel free to close if you like.
next issue:
$ nix-shell --run acorn-hc
Updating git repository `https://github.com/holochain/holochain.git`
Installing holochain v0.0.1 (https://github.com/holochain/holochain.git?rev=4714fbddc48f1f9987c9f574b8d06510ea58ab16#4714fbdd)
Updating git repository `https://github.com/holochain/lmdb-rs.git`
Updating git repository `https://github.com/holochain/rkv.git`
Updating crates.io index
Finished release [optimized] target(s) in 3.93s
Replacing /Users/harlan/code/acorn-hc/.cargo/bin/holochain
Replaced package `holochain v0.0.1 (https://github.com/holochain/holochain.git?rev=4714fbddc48f1f9987c9f574b8d06510ea58ab16#4714fbdd)` with `holochain v0.0.1 (https://github.com/holochain/holochain.git?rev=4714fbddc48f1f9987c9f574b8d06510ea58ab16#4714fbdd)` (executable `holochain`)
Updating git repository `https://github.com/holochain/holochain.git`
Installing dna_util v0.0.1 (https://github.com/holochain/holochain.git?rev=4714fbddc48f1f9987c9f574b8d06510ea58ab16#4714fbdd)
Updating git repository `https://github.com/holochain/lmdb-rs.git`
Updating git repository `https://github.com/holochain/rkv.git`
Updating crates.io index
warning: Patch `lmdb-rkv v0.14.0 (https://github.com/holochain/lmdb-rs.git#46043614)` was not used in the crate graph.
Patch `rkv v0.10.4 (https://github.com/holochain/rkv.git#6f6b4b5a)` was not used in the crate graph.
Check that the patched package version and available features are compatible
with the dependency requirements. If the patch has a different version from
what is locked in the Cargo.lock file, run `cargo update` to use the new
version. This may also occur with an optional dependency that is not enabled.
Finished release [optimized] target(s) in 2.52s
Replacing /Users/harlan/code/acorn-hc/.cargo/bin/dna-util
Replaced package `dna_util v0.0.1 (https://github.com/holochain/holochain.git?rev=4714fbddc48f1f9987c9f574b8d06510ea58ab16#4714fbdd)` with `dna_util v0.0.1 (https://github.com/holochain/holochain.git?rev=4714fbddc48f1f9987c9f574b8d06510ea58ab16#4714fbdd)` (executable `dna-util`)
npm WARN acorn-tests@0.4.0 No description
npm WARN acorn-tests@0.4.0 No repository field.
audited 176 packages in 1.147s
found 1 low severity vulnerability
run `npm audit fix` to fix them, or `npm audit` for details
audited 26 packages in 0.639s
found 0 vulnerabilities
+ acorn-package
+ cargo build --release --target wasm32-unknown-unknown
Finished release [optimized] target(s) in 0.07s
+ cd dnas/profiles
+ dna-util -c profiles.dna.workdir
+ cd ../..
+ cd dnas/projects
+ dna-util -c projects.dna.workdir
+ npm run start
> acorn-hc@0.4.0 start /Users/harlan/code/acorn-hc
> npx @holochain-open-dev/holochain-run-dna dnas/profiles/profiles.dna.gz
events.js:187
throw er; // Unhandled 'error' event
^
Error: spawn lair-keystore ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:264:19)
at onErrorNT (internal/child_process.js:456:16)
at processTicksAndRejections (internal/process/task_queues.js:80:21)
Emitted 'error' event on ChildProcess instance at:
at Process.ChildProcess._handle.onexit (internal/child_process.js:270:12)
at onErrorNT (internal/child_process.js:456:16)
at processTicksAndRejections (internal/process/task_queues.js:80:21) {
errno: 'ENOENT',
code: 'ENOENT',
syscall: 'spawn lair-keystore',
path: 'lair-keystore',
spawnargs: []
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! acorn-hc@0.4.0 start: `npx @holochain-open-dev/holochain-run-dna dnas/profiles/profiles.dna.gz`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the acorn-hc@0.4.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/harlan/.npm/_logs/2020-10-24T07_27_18_160Z-debug.log
This was apparently because holochain had not been initialized on my machine.
I did:
nix-shell
holochain -i
And hit enter a few times to install DB, keystore, etc, and then running the original command:
nix-shell --run acorn-hc
works fine.
All good now! Running both client and server successfully. 👍
Mac OS Catalina -- 10.15.6 (19G2021)
I cloned the repo and ran
nix-shell
, which took a while but then gave me a shell. I quit that and tried the first command in the readme with the following results: