-
Notifications
You must be signed in to change notification settings - Fork 133
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 CLI option to specify entrypoint #220
Add CLI option to specify entrypoint #220
Conversation
a7f8471
to
54a1e80
Compare
Thank you for taking the time implementing a new feature. The team and I will review the RP |
src/serde/deserialize_program.rs
Outdated
let program_json: ProgramJson = deserialize_program_json(path)?; | ||
|
||
let main_pc = match program_json |
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.
For consistency this could be named entrypoint_pc
.
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.
+1
Hi @Bernardstanislas. Thanks for sending this feature. I'd suggest you add a test that proves the right entrypoint is called. It could simply be copy-pasting some of the examples with a renamed |
For sure, I'm a bit busy these days but I'm not forgetting this PR :) |
I've got a bit of time for this, would you like it if I made a PR against your branch with a test? |
Hi @Bernardstanislas, I just sent you a PR against your branch with proposed changes. |
Thanks a lot, just merged your PR |
Hmmm, it looks like I didn't include the test in the PR for some reason 🤦 |
Hi @Bernardstanislas. Did you find the time to look into the new PR I sent you? Sorry for not mentioning it here, I assumed you'd get notified by GitHub. Then I remembered those tend to be rather easy to miss (it happens to me a lot). |
Wow I'm really sorry @Oppen I did actually miss it. So if I understand correctly, you need to include the tests and we're good to go? |
Yes, it's included in the PR. I'm not sure if any new merge conflicts were introduced in the meantime tho, but I expect not. |
@Oppen I am mot sure I understood correctly, do we need your rebase to be able to merge this PR? Do you need something on my side? Sorry for the seemingly misunderstanding. |
Hi @Bernardstanislas! @Oppen is on vacation for a few weeks. What we need is for you to accept his PR with the tests into your PR. |
e9e6183
to
e3977d8
Compare
Hi @Juan-M-V , I merged the PR on my branch and it is now up to date and rebased! |
Perfect! I'll run the tests and talk with the rest of the team to merge your changes |
Codecov Report
@@ Coverage Diff @@
## main #220 +/- ##
==========================================
- Coverage 97.88% 97.87% -0.02%
==========================================
Files 44 44
Lines 11600 11619 +19
==========================================
+ Hits 11355 11372 +17
- Misses 245 247 +2
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
7b65817
to
0d0c62e
Compare
Configurable entrypoint
Description
As described in #180, it might be useful to be able to run another function than the
main
function as an entrypoint.Checklist