Small Issue with Hello Holo Tutorial

I just did the Hello Holo Tutorial. There is a note in the tutorial to run the curl command after you have opened a new terminal window and started a new nix shell. When I did this, the curl command wasn’t found in the nix shell

[nix-shell:~/Documents/holochain/coreconcepts/cc_tuts]$ curl
bash: curl: command not found

When I ran the suggested command without entering into the nix shell, it ran just fine.

curl -X POST -H “Content-Type: application/json” -d ‘{“id”: “0”, “jsonrpc”: “2.0”, “method”: “call”, “params”: {“instance_id”: “test-instance”, “zome”: “hello”, “function”: “hello_holo”, “args”: {} }}’ http://127.0.0.1:8888

Returns

{“jsonrpc”:“2.0”,“result”:"{“Ok”:“Hello Holo”}",“id”:“0”}

Not sure if this is my specific setup or an issue in the tutorial, but I thought I would raise it here.

Please
$ echo $PATH
two times (once within nix overlay, once without). Any difference (binaries)?

@sevenshadow I just saw a report like that the other day. I’m wondering if someone’s been doing cleanup on the Nix environment and didn’t think it was needed. Although that wouldn’t explain why you actually can’t execute it from within the nix shell… so yeah, as with @blooniverse I’d be curious about what your $PATH says, both inside and outside the nix shell.

I will post the results when I get time later tonight.

Outside of nix shell

$ echo $PATH

/Users/charlesostrout/.nix-profile/bin:/opt/local/bin:/opt/local/sbin:/usr/local/lib/dnx/runtimes/dnx-coreclr-darwin-x64.1.0.0-rc1-update1/bin:/Users/charlesostrout/.dnx/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/share/dotnet:/Users/charlesostrout/.rvm/bin

Inside of nix shell

$ echo $PATH

/Users/charlesostrout/Documents/holochain/coreconcepts/cc_tuts/.cargo/bin:/nix/store/7b6xw0kh049s12j2sqbhdv3n6ma11c91-bash-interactive-4.4-p23/bin:/nix/store/y8x4n1m0fhk4wz35hk88g40fa8dwwfzi-clang-wrapper-7.1.0/bin:/nix/store/hvvdxrn9fzav2pyf5n4racam9l8rxr40-clang-7.1.0/bin:/nix/store/2vr25yib2r99bzicpd0rw1wj1n5sgfql-coreutils-8.31/bin:/nix/store/vfpwwfrvczwnazlfra185b06rw92sh9a-cctools-binutils-darwin-wrapper/bin:/nix/store/6f0vlj6narxw9jyyn6nysy5makfrnlrj-cctools-binutils-darwin/bin:/nix/store/2vr25yib2r99bzicpd0rw1wj1n5sgfql-coreutils-8.31/bin:/nix/store/2vr25yib2r99bzicpd0rw1wj1n5sgfql-coreutils-8.31/bin:/nix/store/29mk8j11pszs8db89qsb4abhfkki9j8y-watch-1003.1-2008/bin:/nix/store/m7syqwmxc1awnj2rsi2s6xawaz6k9wwk-hn-flush/bin:/nix/store/aayg40b6cxq856sfn0jn057c14cndncr-saml2aws-2.15.0-bin/bin:/nix/store/1qg9m589fxgxg48hlc5f1xdrrhdfa94d-nix-prefetch-scripts/bin:/nix/store/4npig51k61l3lm62xga4z2g39fkdaz1r-openssh-7.9p1/bin:/nix/store/cibahlh53rgnpzjzkl3lmkgpbnw19y4f-hn-dist-audit/bin:/nix/store/x4y3qmqr9kp73s9wsl45i0v9pdg9vz5c-hc/bin:/nix/store/b6y463b2dpz3lc3hx4hq0s6wq3cidxwq-holochain/bin:/nix/store/dcqs8wa2axfq96sgwdf3pp4fpi01g3qr-sim2h_server/bin:/nix/store/l06ngrkqivshf8nb3alfvczdkx1y3xam-trycp_server/bin:/nix/store/jaavzbpv92wd1pmamzjk477ky2iyihcp-hugo-0.58.0/bin:/nix/store/9x94vhianmpnqvgqh3v8sxmp2hnh2gk8-asciinema-2.0.2/bin:/nix/store/2mzkxr8adwmgql3k2yhj450qhznfbbd5-python3-3.7.5/bin:/nix/store/023izm1j3n24411wbv3qwhiixnw9f2y2-hn-docs/bin:/nix/store/sg8m9gixn90zp9jmmmz1i366gb4jkxlv-hn-docs-github-pages/bin:/nix/store/ybvwwrrl7kzb4p86fnmmicvp4nd3x6x3-git-2.23.0/bin:/nix/store/cqcnbp60nfi4pqags9mhq5fxn4jbq2js-git-hub-1.0.3/bin:/nix/store/l1bma3lnh49zj123hyyyi2sgv7793hs6-github-release-1.2.4/bin:/nix/store/1m71a9lyh694lk2pija0yszh88mxql0b-which-2.21/bin:/nix/store/cfsjfyfwnhl7msq1258xz8ljymh35nxd-nodejs-12.13.0/bin:/nix/store/y8x4n1m0fhk4wz35hk88g40fa8dwwfzi-clang-wrapper-7.1.0/bin:/nix/store/hvvdxrn9fzav2pyf5n4racam9l8rxr40-clang-7.1.0/bin:/nix/store/2vr25yib2r99bzicpd0rw1wj1n5sgfql-coreutils-8.31/bin:/nix/store/vfpwwfrvczwnazlfra185b06rw92sh9a-cctools-binutils-darwin-wrapper/bin:/nix/store/6f0vlj6narxw9jyyn6nysy5makfrnlrj-cctools-binutils-darwin/bin:/nix/store/2vr25yib2r99bzicpd0rw1wj1n5sgfql-coreutils-8.31/bin:/nix/store/f3xn4j6agc3bxxd8inl6n8qn1f8j2s4g-yarn-1.17.3/bin:/nix/store/f7ffvyy5f2k10kjppgxcz0nam6ayvskl-python-2.7.17/bin:/nix/store/r578bzx852f8a7m7cqkarbkj7pqkn9l5-hn-node-flush/bin:/nix/store/4dpxh899hhphl583l23bsw2cvzcxc552-perl-5.30.0/bin:/nix/store/978473ggfsishy898a6zjw1jd663m3vd-hn-release-branch/bin:/nix/store/cbx3dh2wlwylk3ghmmd3pyzwgvqswrwc-hn-release-changelog/bin:/nix/store/bhwi9l2lkb07vyz7sn55i3nlnz7dwnlp-hn-release-cut/bin:/nix/store/fww2a0b7wwjchn7k89h06izy0j8m4jda-hn-release-github/bin:/nix/store/4wlbs73w51pbgzkwppyq9mjz0l52bylw-hn-release-github-notes/bin:/nix/store/igai1hp5db68rmy6812l04zrxz1sl7dv-hn-release-hook-preflight-manual/bin:/nix/store/1yh8hbbx97a1y7zm9kpswhvif0jvxh2p-hn-release-hook-version-readme/bin:/nix/store/8r7a84pnzgaqdgsgxy2b9j3dvhwf2sb0-hn-release-hook-version-rust/bin:/nix/store/0m059b68h4wwr0mamdlkindsv0k84c2s-hn-release-push/bin:/nix/store/h2325x4n23ggp6b6fhhrkf4g3635nd45-rust-1.41.0-nightly-2019-11-15-1bd30ce2a/bin:/nix/store/a0s89092adadrwsaj9x6vp8m5cxgc904-binutils-wrapper-2.31.1/bin:/nix/store/icakcxfi84jb13xl0r86kq2fcc4b7ai6-binutils-2.31.1/bin:/nix/store/2vr25yib2r99bzicpd0rw1wj1n5sgfql-coreutils-8.31/bin:/nix/store/7a1q25v10d57wkp2anc930bhz8gw2xhn-gcc-wrapper-7.4.0/bin:/nix/store/7h2nmmy9g3lrzg3g4cpn62an9zpibywv-gcc-7.4.0/bin:/nix/store/2vr25yib2r99bzicpd0rw1wj1n5sgfql-coreutils-8.31/bin:/nix/store/hglbv72i17vl826i51z0h8i0axz6vwvf-gnumake-4.2.1/bin:/nix/store/669rj7is02x1mbhci60zllxnpj47pka4-openssl-1.1.1d-bin/bin:/nix/store/4rwnmz0x0hx35hyclsjrpf1wx7kzlc7a-pkg-config-0.29.2/bin:/nix/store/99qbavnxccif974r2wy49zac79sh0zz4-rust_carnix-0.10.0/bin:/nix/store/ignl8nixj1h54kb6vhq4iqivrl39sakw-hn-rust-clippy/bin:/nix/store/p0c076b77riz9ik0vnfjsp588ins5bda-hn-rust-fmt-check/bin:/nix/store/hs5xykqb416zqksff6mxdxjy4i05732h-hn-rust-fmt/bin:/nix/store/1y261zlys5xw0gvqwdl62mphzixvxlyp-hn-rust-manifest-install/bin:/nix/store/ssac3mylr9zgrfrvxg62y003jg2s0k13-hn-rust-manifest-list-unpinned/bin:/nix/store/sjs6y7p9l6wi3x4qrww6wkd5p1whmd5v-hn-rust-manifest-set-ver/bin:/nix/store/9r77vjfd6p0f2ra4krsblb2v8kd57z52-hn-rust-manifest-test-ver/bin:/nix/store/14yn3qygivwhy4banijmqlixn0j86gqz-cmake-3.15.1/bin:/nix/store/qp908qvycx5gb4gc76390149ih9jds16-ps-1003.1-2008/bin:/nix/store/cz8j4k3yjr2frm3ch97pgfqw06yp5qzx-binaryen-89/bin:/nix/store/9l380ssb0y7q4z66dadd5fazv0xhk0w8-wasm-gc-0.1.6/bin:/nix/store/qrdgjglj6a8fqsbwnmkb5477sy9xcyyl-wabt-1.0.12/bin:/nix/store/ggs82cfqqhd1g16gwmjgj3nnmlzy59q8-hn-rust-flush/bin:/nix/store/mjyxs9xj16qkrx1hv5y89wlsh3jizkqd-hn-test/bin:/nix/store/r695zbkayw1wv5xidn8pzs4xcxn45dhm-bats-1.1.0/bin:/nix/store/2vr25yib2r99bzicpd0rw1wj1n5sgfql-coreutils-8.31/bin:/nix/store/z41i9bsz84vngrd8vfzi9lkmizbv5qcf-findutils-4.7.0/bin:/nix/store/0v2wp2as95b3g7gidl5dpj1c5paivcjg-diffutils-3.7/bin:/nix/store/2rdbl6pkv618fjvrlh80xy8xrqwl69k3-gnused-4.7/bin:/nix/store/i46izy6hayy20lfsbafkih95n4kbqgm1-gnugrep-3.3/bin:/nix/store/7skj7qidm9lkj3wcq06v1mijl58n3zqb-gawk-5.0.1/bin:/nix/store/f95mkpcf9mnpjszvb80aj4dpd3y5lg48-gnutar-1.32/bin:/nix/store/5nl90z01ar4bibwsvswqw77nm4zxi54c-gzip-1.10/bin:/nix/store/qjk7vrh1i8njh4631l4rabds8fnp1aqd-bzip2-1.0.6.0.1-bin/bin:/nix/store/hglbv72i17vl826i51z0h8i0axz6vwvf-gnumake-4.2.1/bin:/nix/store/25ahawjn7drflr4hx3gzzp91bxvnl94w-bash-4.4-p23/bin:/nix/store/bnzdbr93442b0s064kpcl8n9ir4h5jzy-patch-2.7.6/bin:/nix/store/nc556i8wap48lwzf4rmgh638y0d2fmh7-xz-5.2.4-bin/bin:/Users/charlesostrout/.rvm/gems/ruby-2.2.3@progow-web/bin