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

fix: add rerun-if-changed, remove .git in w2c2, update cc version #9

Merged
merged 3 commits into from
Jan 29, 2025

Conversation

vivianjeng
Copy link
Collaborator

  • add println!("cargo:rerun-if-changed={}", wasmdir);
    If there is a change in wasmdir, rerun transpile
    Fix: Error with caches in rust-witness zkmopro/mopro#298

  • remove .git status
    if the directory is without .git, it tracks the target/ .git status
    截圖 2025-01-19 下午2 47 08

  • update cc version

build_w2c2.sh Outdated
@@ -16,6 +16,7 @@ fi

rm -rf $BUILD_DIR
git clone --recursive https://github.com/turbolent/w2c2 $BUILD_DIR
rm -rf $BUILD_DIR/.git
Copy link
Owner

Choose a reason for hiding this comment

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

Why do we need to remove this .git dir? This is in a temporary directory

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

when I used mopro CLI to create a mopro-example-app
(Now it doesn't ignore the target/. Actually we should fix this)
but it tracks the w2c2 git status

but I think it is optional. I can also revert this.
Do you think we should keep the git status here?

Copy link
Owner

Choose a reason for hiding this comment

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

Ah this script isn't using a tmpdir. Instead of removing the .git directory it's probably better to run these commands in a temporary directory.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I revert the change
3461769

@chancehudson chancehudson merged commit f50a4d0 into chancehudson:main Jan 29, 2025
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.

Error with caches in rust-witness
2 participants