Skip to content

Fix build system issues#174

Merged
gnidan merged 1 commit intomainfrom
build-system-fixes
Mar 9, 2026
Merged

Fix build system issues#174
gnidan merged 1 commit intomainfrom
build-system-fixes

Conversation

@gnidan
Copy link
Member

@gnidan gnidan commented Mar 9, 2026

Summary

Fixes four build system issues:

  • Align bugc vitest versions: bugc had vitest/coverage/ui pinned at ^2.1.8 while all other packages and root use ^3.2.4, causing a duplicate local installation. Updated to ^3.2.4 and replaced deprecated threads: false with pool: "forks" for vitest 3 compatibility.

  • Add missing bugc tsconfig paths: #evmgen/program-builder and #irgen/debug/variables were defined in package.json imports (and used in source) but missing from tsconfig.json paths, breaking IDE resolution for those imports.

  • Fix yarn build on fresh clones: Root yarn build ran tsc --build directly without first generating the auto-generated yamls.ts file that @ethdebug/format depends on. Now runs prepare:yamls before tsc --build.

  • Update CI actions to v4: All three GitHub Actions workflows used actions/checkout@v3 and actions/setup-node@v3 (which use deprecated Node 16 runtime). Updated to v4.

…, yarn build

- Align bugc vitest/coverage/ui versions from ^2.1.8 to ^3.2.4 to
  match all other packages and root; update deprecated `threads: false`
  to `pool: "forks"` for vitest 3 compatibility
- Add missing tsconfig paths for #evmgen/program-builder and
  #irgen/debug/variables in bugc (were in package.json imports but
  missing from tsconfig, breaking IDE resolution)
- Fix `yarn build` to generate schema yamls.ts before tsc, so it
  works on fresh clones without a prior `yarn install`
- Update GitHub Actions from v3 to v4 across all CI workflows
  (checkout and setup-node)
@github-actions
Copy link
Contributor

github-actions bot commented Mar 9, 2026

PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-03-09 15:03 UTC

Copy link
Member Author

@gnidan gnidan left a comment

Choose a reason for hiding this comment

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

Reviewed all 4 changes — looks good:

  1. Vitest alignment: bugc was the only package on ^2.1.8 while everything else uses ^3.2.4. The threads: falsepool: "forks" migration is the correct vitest 3 equivalent. yarn.lock cleanup properly removes all vitest 2 transitive deps.

  2. tsconfig paths: Both #evmgen/program-builder and #irgen/debug/variables are used in source and have corresponding source files. Cross-checked all 37 non-wildcard import keys against tsconfig paths — no other gaps remain.

  3. Build fix: yarn --cwd packages/format prepare:yamls before tsc --build ensures yamls.ts exists on fresh clones. This was the exact issue I hit setting up my worktree.

  4. CI actions v3→v4: Straightforward, all 3 workflow files updated consistently.

CI green (all 4 checks). LGTM.

@gnidan gnidan merged commit 98b7842 into main Mar 9, 2026
4 checks passed
@gnidan gnidan deleted the build-system-fixes branch March 9, 2026 14:59
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.

1 participant