Skip to content
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

fetch possible example contracts at compile time #1244

Conversation

elizabethengelman
Copy link
Contributor

@elizabethengelman elizabethengelman commented Mar 5, 2024

What

This came out of #1229 - the cli was displaying an error when it could not fetch the example contracts from soroban-examples, every time a user ran soroban. This was because the way we had setup the clap cli help info, it would try to fetch valid example contracts everytime help was invoked.

#1232 moved the examples back to being hardcoded, and this PR bakes the list of example contracts into the package - fetching the list at compile time.

cmd/soroban-cli/build.rs Outdated Show resolved Hide resolved
@elizabethengelman elizabethengelman force-pushed the fix/fetch-example-contracts-at-compile-time branch from efa15ad to 46cbe05 Compare March 6, 2024 16:57
cmd/soroban-cli/build.rs Outdated Show resolved Hide resolved
cmd/soroban-cli/build.rs Outdated Show resolved Hide resolved
cmd/soroban-cli/build.rs Outdated Show resolved Hide resolved
cmd/soroban-cli/build.rs Show resolved Hide resolved
cmd/soroban-cli/build.rs Show resolved Hide resolved
@elizabethengelman elizabethengelman changed the title WIP: fetch possible example contracts at compile time fetch possible example contracts at compile time Mar 6, 2024
@elizabethengelman elizabethengelman marked this pull request as ready for review March 6, 2024 21:22
@elizabethengelman elizabethengelman linked an issue Mar 6, 2024 that may be closed by this pull request
@elizabethengelman elizabethengelman force-pushed the fix/fetch-example-contracts-at-compile-time branch from 8989e32 to 876d401 Compare March 13, 2024 14:18
@elizabethengelman elizabethengelman merged commit 02fa2f0 into stellar:main Mar 13, 2024
13 checks passed
@elizabethengelman elizabethengelman deleted the fix/fetch-example-contracts-at-compile-time branch March 13, 2024 15:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

soroban-cli: Fetch example contracts at compile time
3 participants