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

feat: Add env support to all leader prog args #786

Merged
merged 3 commits into from
Nov 8, 2024

Conversation

BGluth
Copy link
Contributor

@BGluth BGluth commented Nov 7, 2024

All leader program args now have a corresponding env variable that can also set it. This should make it easier to deploy in certain settings.

There's a bit of a minor DRY violation with repeating ZERO_BIN_ for each of the env args, but I don't think there's too much that we can do to get around this even if we consider proc macros. Let me know if anyone has any suggestions, but yeah otherwise I think this is fine.

Finally also note that some of the args are defined in paladin, so another PR will be needed to be created there to also add in env support.

Issue: #760

All leader program args now have a corresponding env variable that can also set it. This should make it easier to deploy in certain settings.

Issue: #760
@BGluth BGluth changed the title feat: Add env support to all prog args feat: Add env support to all leader prog args Nov 7, 2024
@github-actions github-actions bot added the crate: zero_bin Anything related to the zero-bin subcrates. label Nov 7, 2024
@BGluth BGluth linked an issue Nov 7, 2024 that may be closed by this pull request
BGluth added a commit to 0xPolygonZero/paladin that referenced this pull request Nov 7, 2024
- The `zk_evm` leader bin just had env support added for it's prog args. However, some of its args are defined in `paladin`,
so we needed to create a separate PR for this repo to add env support for the `paladin` specific prog args.
- See also PR [#786](0xPolygonZero/zk_evm#786) in `zk_evm`.
@BGluth BGluth requested a review from atanmarko November 7, 2024 20:22
BGluth added a commit to 0xPolygonZero/paladin that referenced this pull request Nov 7, 2024
- The `zk_evm` leader bin just had env support added for it's prog args. However, some of its args are defined in `paladin`,
so we needed to create a separate PR for this repo to add env support for the `paladin` specific prog args.
- See also PR [#786](0xPolygonZero/zk_evm#786) in `zk_evm`.
BGluth added a commit to 0xPolygonZero/paladin that referenced this pull request Nov 7, 2024
- The `zk_evm` leader bin just had env support added for it's prog args. However, some of its args are defined in `paladin`,
so we needed to create a separate PR for this repo to add env support for the `paladin` specific prog args.
- See also PR [#786](0xPolygonZero/zk_evm#786) in `zk_evm`.
@atanmarko atanmarko merged commit 981a996 into develop Nov 8, 2024
22 checks passed
@atanmarko atanmarko deleted the brendan/feat/760_leader_cli_params_env branch November 8, 2024 09:14
atanmarko pushed a commit to 0xPolygonZero/paladin that referenced this pull request Nov 8, 2024
* feat: Added env support for prog args

- The `zk_evm` leader bin just had env support added for it's prog args. However, some of its args are defined in `paladin`,
so we needed to create a separate PR for this repo to add env support for the `paladin` specific prog args.
- See also PR [#786](0xPolygonZero/zk_evm#786) in `zk_evm`.

* Also included new clippy lint & dep downbump

- Very unsure why the downbump is occuring when building on the latest
  compiler...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
crate: zero_bin Anything related to the zero-bin subcrates.
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Add environment variables for leader CLI parameters
3 participants