scaffolding icon indicating copy to clipboard operation
scaffolding copied to clipboard

Running `hc scaffold collections` removes code comments

Open c12i opened this issue 1 year ago • 0 comments

Running hc scaffold collections deletes code comments from previously generated rust code in integrity zome

How to reproduce

  1. Scaffold web app, name it, select a template of your choice and set up holonix development environment. Cd into the project and run nix develop
nix run github:/holochain/holochain#hc-scaffold -- web-app
  1. Scaffold a dna
hc scaffold dna
  1. Scaffold a zome
hc scaffold zome
  1. Scaffold an entry type
hc scaffold entry-type
  1. Commit changes via git to visualize deleted comments via git diff
git add .
git commit -m "Initial commit"
  1. Scaffold a collection
hc scaffold collection
  1. Observe diff, the integrity zome's code will show comments initially scaffolded in previous stages are now deleted. Specifically on the validate_create_link_<name>_updates function

c12i avatar Dec 20 '23 17:12 c12i