Skill站外收录 @skilllib/skill-2014279374759997443
noir-sync-update
同步 noir 子模块更新后,自动完成配套的依赖锁定文件维护与代码格式化操作,包括更新 avm-transpiler 的 Cargo.lock、yarn-project 的 yarn.lock,并对 noir-projects 项目执行统一格式化,确保各模块版本一致且符合 CI 验证要求。
开发运维 AI 技能
Skills.MD
# Noir Sync Update
## Workflow
Copy this checklist and track progress:
```
Noir Sync Update Progress:
- [ ] Step 1: Ensure that the new submodule commit has been pulled.
- [ ] Step 2: Update the `Cargo.lock` file in `avm-transpiler`.
- [ ] Step 3: Update the `yarn.lock` file in `yarn-project`.
- [ ] Step 4: Format `noir-projects`.
```
After each step, commit the results.
## Critical Verification Rules
**ALWAYS verify file changes with `git status` after any modification step before marking it complete.** Command output showing "updating" does not guarantee the file was written to disk.
**IMPORTANT:** Always run `git status` from the repository root directory, not from subdirectories. Running `git status noir-projects/` from inside `noir-projects/` will fail silently.
### Step 1: Ensure that the new submodule commit has been pulled
Run `./bootstrap.sh` in `noir` to ensure that the new submodule commit has been pulled.
This shouldn't update any files such that a commit is necessary.
### Step 2: Update `Cargo.lock` in `avm-transpiler`
**Before updating**, determine the expected noir version:
1. Read `noir/noir-repo/.release-please-manifest.json` to find the expected version (e.g., `1.0.0-beta.18`)
2. Check the current version in `avm-transpiler/Cargo.lock` by searching for `acir` or similar noir packages
**To update the lock file**, run `cargo update` in `avm-transpiler` with **only noir-repo packages**:
```bash
cd avm-transpiler
cargo update -p acir -p acir_field -p acvm -p acvm_blackbox_solver -p bn254_blackbox_solver -p brillig -p brillig_vm -p fm -p iter-extended -p noirc_abi -p noirc_arena -p noirc_artifacts -p noirc_errors -p noirc_evaluator -p noirc_frontend -p noirc_printable_type -p noirc_span
```
**IMPORTANT:** Do NOT use `cargo update` without `-p` flags—this will update ALL dependencies, not just noir-repo packages.
**After updating**, verify:
1. Run `git status avm-transpiler/` to confirm `Cargo.lock` was modified
2. Run `cargo check` to ensure it still builds
3. Grep `Cargo.lock` for `acir` to verify the version matches the expected version from `.release-please-manifest.json`
It's possible that changes in dependencies result in `avm-transpiler` no longer building.
- If transient dependency mismatches mean changes to the dependency tree are necessary, then the `Cargo.lock` file in `avm-transpiler` should be modified. **DO NOT MODIFY `noir/noir-repo`**.
- If updates are necessary due to changes in exports from `noir/noir-repo` packages, then perform the necessary updates to import statements, etc.
### Step 3: Update `yarn.lock` in `yarn-project`
Run `yarn install` in `yarn-project` to update the `yarn.lock` file.
**After running**, verify with `git status yarn-project/yarn.lock` that the file was modified before committing.
### Step 4: Format `noir-projects`
Run `./bootstrap.sh format` in `noir-projects`.
This is necessary as the updates to the noir compiler may result in the formatter handling the same code differently.
Failing to run the formatter will result in a CI failure.
**After running**, check `git status noir-projects/` for any formatting changes that need to be committed.
评论 0
还没有评论,来抢沙发。
相关内容
同类或同场景的收录内容
building-with-kafka-strimzi
在 Kubernetes 上构建基于 Apache Kafka 的事件驱动系统,支持高可靠的消息传递、事务性处理与精确一次语义,结合 Strimzi 运营商实现集群自动化管理,利用 Schema Registry 保障事件模式演进,适用于微服务间解耦通信与实时数据流处理场景。
站外数据与分析
609 0.0
personal-tool-builder
专注于从个人真实痛点出发快速构建实用工具,涵盖命令行程序、本地优先应用和自动化脚本的开发与演进,强调先满足自身需求再逐步扩展,通过持续自用打磨功能,避免过度设计,确保工具简洁有效且长期可维护。
站外商业与营销
196 0.0
threejs-lighting
实现三维场景中的光照与阴影控制,支持多种光源类型及环境光照明,提供从基础布光到高级阴影优化的完整方案,适用于需要真实感渲染或性能平衡的可视化项目。
站外效率工具
442 0.0
aggregation-helper
提供数据聚合场景的自动化辅助能力,涵盖 SQL 查询编写、统计分析建模、可视化方案设计及商业智能配置,支持从需求理解到生产级代码生成的全流程指导。
站外效率工具数据与分析
217 0.0
举报「noir-sync-update」
举报信息仅审核团队可见,同一资产 24 小时内仅可举报一次