-
Notifications
You must be signed in to change notification settings - Fork 547
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: fix scripts to use different paths if mina is a submodule of o1js #14229
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MartinMinkov
force-pushed
the
feat/o1js-add-mina-submodule-support
branch
from
September 28, 2023 16:24
a025ce4
to
396ae46
Compare
!ci-build-me |
querolita
approved these changes
Oct 2, 2023
ghost-not-in-the-shell
approved these changes
Oct 2, 2023
MartinMinkov
force-pushed
the
feat/o1js-add-mina-submodule-support
branch
3 times, most recently
from
October 4, 2023 16:06
fab8e5e
to
f17a572
Compare
MartinMinkov
force-pushed
the
feat/o1js-add-mina-submodule-support
branch
from
October 11, 2023 17:39
f17a572
to
4f20eb6
Compare
!ci-build-me |
MartinMinkov
force-pushed
the
feat/o1js-add-mina-submodule-support
branch
2 times, most recently
from
October 23, 2023 19:14
3032a30
to
4f20eb6
Compare
!ci-build-me |
MartinMinkov
force-pushed
the
feat/o1js-add-mina-submodule-support
branch
from
January 4, 2024 05:50
0cdbb7b
to
2a6881d
Compare
MartinMinkov
force-pushed
the
feat/o1js-add-mina-submodule-support
branch
from
January 4, 2024 06:09
905f450
to
4f20eb6
Compare
!ci-build-me |
!approved-for-mainnet |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Addresses o1-labs/o1js#1096