Skip to content

Commit

Permalink
chore(zkstack_cli): build sys contract with --frozen-lockfile (#3138)
Browse files Browse the repository at this point in the history
## What ❔

<!-- What are the changes this PR brings about? -->
<!-- Example: This PR adds a PR template to the repo. -->
<!-- (For bigger PRs adding more context is appreciated) -->

## Why ❔

<!-- Why are these changes done? What goal do they contribute to? What
are the principles behind them? -->
<!-- Example: PR templates ensure PR reviewers, observers, and future
iterators are in context about the evolution of repos. -->

## Checklist

<!-- Check your PR fulfills the following items. -->
<!-- For draft PRs check the boxes as you complete them. -->

- [ ] PR title corresponds to the body of PR (we generate changelog
entries from PRs).
- [ ] Tests for the changes have been added / updated.
- [ ] Documentation comments have been added / updated.
- [ ] Code has been formatted via `zkstack dev fmt` and `zkstack dev
lint`.
  • Loading branch information
itegulov authored Oct 21, 2024
1 parent cd16083 commit 0757ecd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion zkstack_cli/crates/common/src/contracts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ pub fn build_l2_contracts(shell: Shell, link_to_code: PathBuf) -> anyhow::Result

pub fn build_system_contracts(shell: Shell, link_to_code: PathBuf) -> anyhow::Result<()> {
let _dir_guard = shell.push_dir(link_to_code.join("contracts/system-contracts"));
Cmd::new(cmd!(shell, "yarn install")).run()?;
// Do not update era-contract's lockfile to avoid dirty submodule
Cmd::new(cmd!(shell, "yarn install --frozen-lockfile")).run()?;
Cmd::new(cmd!(shell, "yarn preprocess:system-contracts")).run()?;
Cmd::new(cmd!(
shell,
Expand Down

0 comments on commit 0757ecd

Please sign in to comment.