-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add warning for deleted files to prevent errors during processing #163
Conversation
Hey thanks @moltam89! actually, the real problem was that since we were finding diff earlier like: const { stdout } = await execa("git", ["diff", "--name-only", `${firstCommit.trim()}..HEAD`], {
cwd: projectPath,
}); Timeline: 1. initial commit (had YourContract.sol), 2. In second commit you removed Now because of the above git logic. Even though you removed Another improvement I pushed to create-extension CLI is let suppose, Timeline:
Test instructions:
git clone https://github.com/technophile-04/ctf-extension-instance.git && cd ctf-extension-instance
git checkout c6eb90c666cdfee52a31ca969fb9ee62864066c5
yarn build:dev && yarn create-extension ../ctf-extension-instance ^ This will create a new page in
git checkout main
|
Thanks @technophile-04 , This is a thorough solution, works great for me! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you Shiv, great PR!
Working great to me! But added a bunch of nitpicks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @rin-st for the review just pushed the tweak 🙌
Hey guys,
I was working on an extension, where I deleted the default
YourContract.sol
file, which resulted in an error when I tried to useyarn create-extension {projectName}
.Steps to reproduce:
After this fix it should work like this: