Skip to content

[Feature] Support specifying additional dependencies at runtime.#29272

Merged
d0cd merged 3 commits intomasterfrom
feat/with-flag-extra-programs
Mar 31, 2026
Merged

[Feature] Support specifying additional dependencies at runtime.#29272
d0cd merged 3 commits intomasterfrom
feat/with-flag-extra-programs

Conversation

@d0cd
Copy link
Copy Markdown
Collaborator

@d0cd d0cd commented Mar 31, 2026

This PR adds support for the --with flag to leo run and leo execute allowing dependencies to be specified at runtime.

@mohammadfawaz mohammadfawaz added the 🖥️ CLI Anything related to the Leo CLI. label Mar 31, 2026
Copy link
Copy Markdown
Collaborator

@mohammadfawaz mohammadfawaz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Two question:

  1. Is there anything that we can do with this that can't be done with leo add (other than the fact that we may not want to pollute the manifest)
  2. In what order should the extra dependencies be loaded?

@d0cd
Copy link
Copy Markdown
Collaborator Author

d0cd commented Mar 31, 2026

  1. No, it's mainly to allow us to execute without polluting the manifest.
  2. In the order in which they're specified seems reasonable.

@mohammadfawaz
Copy link
Copy Markdown
Collaborator

In the order in which they're specified seems reasonable.

Ah I meant in what order should the user provide them? I assume in topological order in case they depend on each other?

@d0cd
Copy link
Copy Markdown
Collaborator Author

d0cd commented Mar 31, 2026

That's right. We'll walk the on-chain programs but not the local ones.

@mohammadfawaz
Copy link
Copy Markdown
Collaborator

Added docs here: ProvableHQ/leo-docs-source#586

Let me know if that's accurate.

@d0cd d0cd merged commit 87600cd into master Mar 31, 2026
5 checks passed
@d0cd d0cd deleted the feat/with-flag-extra-programs branch March 31, 2026 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🖥️ CLI Anything related to the Leo CLI.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants