This repository was archived by the owner on Feb 3, 2023. It is now read-only.

Description
Because hc package spawns a new bash process, it runs .bashrc. If the user has anything that writes to STDOUT in their .bashrc file, that output gets captured by hc package. AFAICT this doesn't matter until it comes time to check for the existence of the build artifact, when the output gets incorporated into the expected artifact's path. (It might cause issues elsewhere too, but I'm not sure.)
Steps to reproduce:
- Add the line
echo "***hello***" somewhere in your .bashrc
- Enter the nix shell:
nix-shell https://holochain.love
- Generate a stub project:
hc init stub-project
cd stub project
hc generate zomes/stub-zome
- Try to build:
hc package
- Witness error message:
Error: Couldn't traverse DNA in directory "/home/alice/Holochain/stub-project": artifact path /home/alice/Holochain/stub-project/zomes/stub-zome/code/***hello***
/home/alice/target/wasm32-unknown-unknown/release/stub-zome.wasm either doesn't point to a file or doesn't exist
The developer who reported this argues that it's a common thing to echo stuff in your .bashrc (I'd be inclined to agree). This has a direct impact on any dev who is trying Holochain for the first time; it's a red herring error message.