cli
cli copied to clipboard
ignite scaffold message errors with invalid checksum
Describe the bug
I attempted to scaffold a new message and encountered the error invalid checksum
To reproduce
- Install latest Ignite CLI (at the moment v0.21.2)
- Attempt to scaffold a message, observe error
$ ignite scaffold message foo
invalid checksum
What version are you using?
$ ignite version
Ignite CLI version: v0.21.2
Ignite CLI build date: 2022-05-16T18:58:45Z
Ignite CLI source hash: 83cee38e68fe3dd7cdf48a1a7881ac553a281042
Your OS: darwin
Your arch: arm64
Your go version: go version go1.18.1 darwin/arm64
Your uname -a: Darwin MacBook-Pro-3.local 21.5.0 Darwin Kernel Version 21.5.0: Tue Apr 26 21:08:37 PDT 2022; root:xnu-8020.121.3~4/RELEASE_ARM64_T6000 arm64
Host: macOS Monterey Version 12.4 Chip: Apple M1 Pro
This error does not reproduce on my machine for Ignite CLI v0.20.4
Can't reproduce.

macOS Monterey Version 12.3.1 Chip: Apple M1 Pro
I also failed to reproduce the issue:
macOS Monterey Version 12.3.1
Chip: Apple M1 Pro
I am wondering if it might have something to do with the newer macOS version (12.4), or maybe with a lack of disk space.
Assuming you already tried scaffolding a new chain from scratch, there is a chance that the checksum error might originate in the Git repository, it is a long shot but maybe you can check that you don't get errors in your chain app repo using something like:
git fsck --no-dangling --full
This should not show any errors.
I observed this error in a clone of https://github.com/b9lab/ida-exercise-week-2-student-repo
No errors observed here:
git fsck --no-dangling --full
Checking object directories: 100% (256/256), done.
Checking objects: 100% (1018/1018), done.
Closing due to stale nature, please reopen if otherwise.