Open pdaoust opened 4 years ago
Suggested fix: do some magic string munging in hc generate
to make sure the .hcbuild
file always looks for a snake_case build artifact, but that feels fragile because it relies on upstream behaviour that's subject to change.
Another suggested fix: just enforce snake_case from the get-go.
Steps to reproduce:
hc init my-dna
cd my-dna
hc generate zomes/kebab-case
hc package
Output:
As you can see, it compiles fine, but then when
wasm-gc
looks for the artifactkebab-case.wasm
it can't find it. Looking in the target dir, it exists askebab_case.wasm
. Seems that cargo and rustc default to snake_casing the build artifact's filename, and there's no way for cargo to pass an explicit filename to rustc yet.