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

[o1js-main] feat: fix scripts to use different paths if mina is a submodule of o1js #14435

Merged
merged 42 commits into from
Oct 26, 2023

Conversation

MartinMinkov
Copy link
Contributor

Explain your changes:
Fixes some of the scripts called by dune to use different absolute paths if we are building mina in the context of the o1js as mina being a submodule.

The issue occurs when we build o1js from the root directory with mina as a submodule. Dune will try to resolve some absolute paths from build scripts that will fail and not build o1js properly. To fix this, we conditionally check for submodule locations and change the paths if we have a mina submodule present, otherwise, we use the same build process. This lets us build mina the same way but also build o1js dependencies properly.

Explain how you tested your changes:
Built mina from the root directory to test normal building and built o1js using mina as a submodule successfully.

tizoc and others added 30 commits July 11, 2023 19:06
…again

Remove duplicated build for Lucy in CI
1. Use memo and fee range
2. Make max_account_updates configurable
3. Change type string of zkapp in internal logging to
   `zkapp:<num acc upds>:<num proofs>`
4. Reduce checking interval in `wait_until_zkapps_deployed`
…height-6

Update account_subtree_height to 6
…ummury-to-status-graphql

Add snark pool information to the status metrics query results
@MartinMinkov MartinMinkov requested review from a team as code owners October 25, 2023 19:29
@MartinMinkov MartinMinkov changed the title Feat/o1js add mina submodule support o1jsmain [o1js-main] feat: fix scripts to use different paths if mina is a submodule of o1js Oct 25, 2023
@mitschabaude
Copy link
Contributor

!ci-build-me

mina_submodule=$(git submodule status | grep "mina" || true)

if [[ -n "$mina_submodule" ]]; then
marlin_submodule_dir=$(git -C "$git_root/src/mina" submodule status | grep proof-systems | sed 's/^[-\ ]//g' | cut -d ' ' -f 2)
Copy link
Member

Choose a reason for hiding this comment

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

Maybe rename this at the same time, no?

@mitschabaude mitschabaude merged commit 28aef4f into o1js-main Oct 26, 2023
@mitschabaude mitschabaude deleted the feat/o1js-add-mina-submodule-support-o1jsmain branch October 26, 2023 12:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.