Workgroup: Blitz Build Fixes #3

Open
opened 2026-04-14 16:18:51 +02:00 by kade · 5 comments
Owner

Type: bug

Priority: medium

Context

Extracted from CHANGELOG.md entry: Workgroup: Blitz Build Fixes

Description

  • Fixed tree-sitter-markdown and tree-sitter-cpp inconsistent dependency paths between dependencies and dev-dependencies
  • Updated all 19 vendor tree-sitter grammar crates to use ../../vendor/tree-sitter/ instead of ../../tree-sitter/
  • Fixed tree-sitter-css and tree-sitter-gitcommit which had incorrect ../../../tree-sitter/ paths
  • Deleted services/blitz/Cargo.lock to force lockfile regeneration
  • Cleaned vendor target directories to remove stale build artifacts
  • Deleted vendor tree-sitter grammar Cargo.lock files
  • Renamed /home/kade/tree-sitter to /home/kade/tree-sitter.backup to resolve package collision with vendored tree-sitter
  • Added missing tree-sitter-language dependency to vendor/tree-sitter-json/Cargo.toml

Files Affected

  • services/blitz/Cargo.lock
  • vendor/tree-sitter-json/Cargo.toml
  • vendor/tree-sitter/`

Service/Component

Service: blitz
Package: Not specified

CHANGELOG Reference

Line numbers: 694-713


This issue was automatically extracted from CHANGELOG.md

## Type: bug ## Priority: medium ## Context Extracted from CHANGELOG.md entry: Workgroup: Blitz Build Fixes ## Description - Fixed tree-sitter-markdown and tree-sitter-cpp inconsistent dependency paths between dependencies and dev-dependencies - Updated all 19 vendor tree-sitter grammar crates to use `../../vendor/tree-sitter/` instead of `../../tree-sitter/` - Fixed tree-sitter-css and tree-sitter-gitcommit which had incorrect `../../../tree-sitter/` paths - Deleted services/blitz/Cargo.lock to force lockfile regeneration - Cleaned vendor target directories to remove stale build artifacts - Deleted vendor tree-sitter grammar Cargo.lock files - Renamed /home/kade/tree-sitter to /home/kade/tree-sitter.backup to resolve package collision with vendored tree-sitter - Added missing tree-sitter-language dependency to vendor/tree-sitter-json/Cargo.toml ## Files Affected - services/blitz/Cargo.lock - vendor/tree-sitter-json/Cargo.toml - vendor/tree-sitter/` ## Service/Component Service: blitz Package: Not specified ## CHANGELOG Reference Line numbers: 694-713 --- This issue was automatically extracted from CHANGELOG.md
Author
Owner

Current Build State

Build Error

The blitz build is currently failing with the following error:

error: failed to load manifest for workspace member `/home/kade/reynard/services/blitz/crates/action_log`
referenced by workspace at `/home/kade/reynard/services/blitz/Cargo.toml`

Caused by:
  failed to load manifest for dependency `buffer_diff`

Caused by:
  failed to load manifest for dependency `language`

Caused by:
  failed to load manifest for dependency `settings`

Caused by:
  failed to load manifest for dependency `settings_content`

Caused by:
  failed to load manifest for dependency `settings_json`

Caused by:
  failed to load manifest for dependency `tree-sitter`

Caused by:
  failed to read `/home/kade/reynard/vendor/tree-sitter/lib/Cargo.toml`

Caused by:
  No such file or directory (os error 2)

Root Cause

The build is failing because the vendored tree-sitter library at /home/kade/reynard/vendor/tree-sitter/lib/Cargo.toml does not exist. This is directly related to the tree-sitter vendoring work.

Status

The blitz submodule appears to be incomplete or the tree-sitter vendoring has not been completed. The tree-sitter dependency is still trying to load from a vendored path that doesn't exist.

Next Steps

  1. Complete the tree-sitter vendoring as outlined in issue #12
  2. Ensure all tree-sitter grammar crates are properly vendored
  3. Update the workspace Cargo.toml to use vendored dependencies
## Current Build State ### Build Error The blitz build is currently failing with the following error: ``` error: failed to load manifest for workspace member `/home/kade/reynard/services/blitz/crates/action_log` referenced by workspace at `/home/kade/reynard/services/blitz/Cargo.toml` Caused by: failed to load manifest for dependency `buffer_diff` Caused by: failed to load manifest for dependency `language` Caused by: failed to load manifest for dependency `settings` Caused by: failed to load manifest for dependency `settings_content` Caused by: failed to load manifest for dependency `settings_json` Caused by: failed to load manifest for dependency `tree-sitter` Caused by: failed to read `/home/kade/reynard/vendor/tree-sitter/lib/Cargo.toml` Caused by: No such file or directory (os error 2) ``` ### Root Cause The build is failing because the vendored tree-sitter library at `/home/kade/reynard/vendor/tree-sitter/lib/Cargo.toml` does not exist. This is directly related to the tree-sitter vendoring work. ### Status The blitz submodule appears to be incomplete or the tree-sitter vendoring has not been completed. The tree-sitter dependency is still trying to load from a vendored path that doesn't exist. ### Next Steps 1. Complete the tree-sitter vendoring as outlined in issue #12 2. Ensure all tree-sitter grammar crates are properly vendored 3. Update the workspace Cargo.toml to use vendored dependencies
Author
Owner

Build State Update

Progress Made

Tree-Sitter Submodule (FIXED)

  • The tree-sitter submodule is properly initialized
  • File exists at /home/kade/reynard/vendor/tree-sitter/lib/Cargo.toml
  • Tree-sitter vendoring is complete

Blitz Submodule (FIXED)

  • The blitz submodule was broken (invalid git repository reference)
  • Successfully re-initialized with git submodule update --init services/blitz
  • Blitz now has proper Cargo.toml and all crates

Remaining Issue

Ambiggy Dependency (MISSING)
The build is now failing due to missing ambiggy service:

error: failed to load manifest for workspace member `/home/kade/reynard/services/blitz/crates/shell_pool`
referenced by workspace at `/home/kade/reynard/services/blitz/Cargo.toml`

Caused by:
  failed to load manifest for dependency `ambiggy`

Caused by:
  failed to read `/home/kade/reynard/services/ambiggy/Cargo.toml`

Caused by:
  No such file or directory (os error 2)

Root Cause

  • ambiggy was listed in .gitmodules but not in git's index
  • Removed from .gitmodules as it was an orphaned submodule reference
  • ambiggy doesn't exist in git history
  • blitz code in crates/util/src/paths.rs references ambiggy with enable/disable flag

Next Steps

  1. Determine if ambiggy should be a service or if the dependency should be removed from blitz
  2. If ambiggy is needed, either create it as a service or add it as a proper submodule
  3. If not needed, remove ambiggy references from blitz code and dependencies
## Build State Update ### Progress Made **Tree-Sitter Submodule (FIXED)** - The tree-sitter submodule is properly initialized - File exists at `/home/kade/reynard/vendor/tree-sitter/lib/Cargo.toml` - Tree-sitter vendoring is complete **Blitz Submodule (FIXED)** - The blitz submodule was broken (invalid git repository reference) - Successfully re-initialized with `git submodule update --init services/blitz` - Blitz now has proper Cargo.toml and all crates ### Remaining Issue **Ambiggy Dependency (MISSING)** The build is now failing due to missing ambiggy service: ``` error: failed to load manifest for workspace member `/home/kade/reynard/services/blitz/crates/shell_pool` referenced by workspace at `/home/kade/reynard/services/blitz/Cargo.toml` Caused by: failed to load manifest for dependency `ambiggy` Caused by: failed to read `/home/kade/reynard/services/ambiggy/Cargo.toml` Caused by: No such file or directory (os error 2) ``` ### Root Cause - ambiggy was listed in `.gitmodules` but not in git's index - Removed from `.gitmodules` as it was an orphaned submodule reference - ambiggy doesn't exist in git history - blitz code in `crates/util/src/paths.rs` references ambiggy with enable/disable flag ### Next Steps 1. Determine if ambiggy should be a service or if the dependency should be removed from blitz 2. If ambiggy is needed, either create it as a service or add it as a proper submodule 3. If not needed, remove ambiggy references from blitz code and dependencies
Author
Owner

Build State Update

Progress Made

Tree-Sitter Submodule (FIXED)

  • The tree-sitter submodule is properly initialized
  • File exists at /home/kade/reynard/vendor/tree-sitter/lib/Cargo.toml
  • Tree-sitter vendoring is complete

Blitz Submodule (FIXED)

  • The blitz submodule was broken (invalid git repository reference)
  • Successfully re-initialized with git submodule update --init services/blitz
  • Blitz now has proper Cargo.toml and all crates

Ambiggy Dependency (FIXED)

  • Added ambiggy as a submodule from kade/ambiggy
  • Successfully cloned and initialized

Vendor Dependencies Fixed

  • Added jpeg-encoder to vendor/image/Cargo.toml (missing dependency)
  • Added serde to vendor/image/Cargo.toml (missing dependency)
  • Initialized shell-pool submodule

Tree-Sitter Elixir (FIXED)

  • Repository doesn't exist on git.sly.so/kade/tree-sitter-elixir
  • Removed from .gitmodules
  • Commented out references in blitz/Cargo.toml and crates/language/Cargo.toml

Remaining Issues

Tree-Sitter Submodules (IN PROGRESS)
Multiple tree-sitter grammars are registered in .gitmodules but not in git's index:

  • tree-sitter-go: Listed in .gitmodules but not recognized by git
  • Need to systematically check and initialize all tree-sitter-* submodules

Next Steps

  1. Fix tree-sitter-go submodule (add properly or comment out)
  2. Continue fixing remaining tree-sitter grammar submodules
  3. Test build after each fix
## Build State Update ### Progress Made **Tree-Sitter Submodule (FIXED)** - The tree-sitter submodule is properly initialized - File exists at `/home/kade/reynard/vendor/tree-sitter/lib/Cargo.toml` - Tree-sitter vendoring is complete **Blitz Submodule (FIXED)** - The blitz submodule was broken (invalid git repository reference) - Successfully re-initialized with `git submodule update --init services/blitz` - Blitz now has proper Cargo.toml and all crates **Ambiggy Dependency (FIXED)** - Added ambiggy as a submodule from kade/ambiggy - Successfully cloned and initialized **Vendor Dependencies Fixed** - Added jpeg-encoder to vendor/image/Cargo.toml (missing dependency) - Added serde to vendor/image/Cargo.toml (missing dependency) - Initialized shell-pool submodule **Tree-Sitter Elixir (FIXED)** - Repository doesn't exist on git.sly.so/kade/tree-sitter-elixir - Removed from .gitmodules - Commented out references in blitz/Cargo.toml and crates/language/Cargo.toml ### Remaining Issues **Tree-Sitter Submodules (IN PROGRESS)** Multiple tree-sitter grammars are registered in .gitmodules but not in git's index: - tree-sitter-go: Listed in .gitmodules but not recognized by git - Need to systematically check and initialize all tree-sitter-* submodules ### Next Steps 1. Fix tree-sitter-go submodule (add properly or comment out) 2. Continue fixing remaining tree-sitter grammar submodules 3. Test build after each fix
Author
Owner

Build State Update

Progress Made

Tree-Sitter Submodule (FIXED)

  • The tree-sitter submodule is properly initialized
  • File exists at /home/kade/reynard/vendor/tree-sitter/lib/Cargo.toml
  • Tree-sitter vendoring is complete

Blitz Submodule (FIXED)

  • The blitz submodule was broken (invalid git repository reference)
  • Successfully re-initialized with git submodule update --init services/blitz
  • Blitz now has proper Cargo.toml and all crates

Ambiggy Dependency (FIXED)

  • Added ambiggy as a submodule from kade/ambiggy
  • Successfully cloned and initialized

Vendor Dependencies Fixed

  • Added jpeg-encoder to vendor/image/Cargo.toml (missing dependency)
  • Added serde to vendor/image/Cargo.toml (missing dependency)
  • Initialized shell-pool submodule
  • Removed incomplete image-webp directory and commented out dependency
  • Added rgb as submodule from kade/rgb and uncommented dependency
  • Removed webp from default-formats feature

Tree-Sitter Elixir (FIXED)

  • Repository doesn't exist on git.sly.so/kade/tree-sitter-elixir
  • Removed from .gitmodules
  • Commented out references in blitz/Cargo.toml and crates/language/Cargo.toml

Tree-Sitter Go (FIXED)

  • Added tree-sitter-go as a submodule from kade/tree-sitter-go.git
  • Successfully cloned and initialized

Flate2-Rs (FIXED)

  • Removed incomplete flate2-rs directory (only had examples/)
  • Added kade/flate2-rs as submodule
  • Updated vecstore/Cargo.toml to use vendored flate2-rs

RGB (FIXED)

  • Added kade/rgb as submodule
  • Uncommented rgb dependency in image/Cargo.toml
  • Added back dep:rgb to avif feature

Notify Dependencies (FIXED)

  • Fixed notify dependency references to point to actual packages:
    • notify = { path = "../../vendor/notify/notify" }
    • notify-types = { path = "../../vendor/notify/notify-types" }

Tree-Sitter-Language Paths (FIXED)
Fixed all tree-sitter-language dependency paths to use correct relative path ../tree-sitter/crates/language:

  • tree-sitter-bash, tree-sitter-c, tree-sitter-cpp, tree-sitter-css, tree-sitter-diff
  • tree-sitter-embedded-template, tree-sitter-gitcommit, tree-sitter-git-rebase
  • tree-sitter-go, tree-sitter-heex, tree-sitter-html, tree-sitter-jsdoc, tree-sitter-json
  • tree-sitter-markdown, tree-sitter-python, tree-sitter-regex, tree-sitter-ruby
  • tree-sitter-rust, tree-sitter-typescript, tree-sitter-yaml

Digest Path (FIXED)

  • Fixed digest path in pbkdf2/Cargo.toml from ../../../traits/digest to ../../traits/digest

Remaining Issues

Build is progressing through dependency resolution. Currently updating git repositories and crates.io index.

Next Steps

  1. Continue monitoring build for any remaining dependency issues
  2. Fix any missing or incorrect vendor paths as they appear
## Build State Update ### Progress Made **Tree-Sitter Submodule (FIXED)** - The tree-sitter submodule is properly initialized - File exists at `/home/kade/reynard/vendor/tree-sitter/lib/Cargo.toml` - Tree-sitter vendoring is complete **Blitz Submodule (FIXED)** - The blitz submodule was broken (invalid git repository reference) - Successfully re-initialized with `git submodule update --init services/blitz` - Blitz now has proper Cargo.toml and all crates **Ambiggy Dependency (FIXED)** - Added ambiggy as a submodule from kade/ambiggy - Successfully cloned and initialized **Vendor Dependencies Fixed** - Added jpeg-encoder to vendor/image/Cargo.toml (missing dependency) - Added serde to vendor/image/Cargo.toml (missing dependency) - Initialized shell-pool submodule - Removed incomplete image-webp directory and commented out dependency - Added rgb as submodule from kade/rgb and uncommented dependency - Removed webp from default-formats feature **Tree-Sitter Elixir (FIXED)** - Repository doesn't exist on git.sly.so/kade/tree-sitter-elixir - Removed from .gitmodules - Commented out references in blitz/Cargo.toml and crates/language/Cargo.toml **Tree-Sitter Go (FIXED)** - Added tree-sitter-go as a submodule from kade/tree-sitter-go.git - Successfully cloned and initialized **Flate2-Rs (FIXED)** - Removed incomplete flate2-rs directory (only had examples/) - Added kade/flate2-rs as submodule - Updated vecstore/Cargo.toml to use vendored flate2-rs **RGB (FIXED)** - Added kade/rgb as submodule - Uncommented rgb dependency in image/Cargo.toml - Added back dep:rgb to avif feature **Notify Dependencies (FIXED)** - Fixed notify dependency references to point to actual packages: - notify = { path = "../../vendor/notify/notify" } - notify-types = { path = "../../vendor/notify/notify-types" } **Tree-Sitter-Language Paths (FIXED)** Fixed all tree-sitter-language dependency paths to use correct relative path `../tree-sitter/crates/language`: - tree-sitter-bash, tree-sitter-c, tree-sitter-cpp, tree-sitter-css, tree-sitter-diff - tree-sitter-embedded-template, tree-sitter-gitcommit, tree-sitter-git-rebase - tree-sitter-go, tree-sitter-heex, tree-sitter-html, tree-sitter-jsdoc, tree-sitter-json - tree-sitter-markdown, tree-sitter-python, tree-sitter-regex, tree-sitter-ruby - tree-sitter-rust, tree-sitter-typescript, tree-sitter-yaml **Digest Path (FIXED)** - Fixed digest path in pbkdf2/Cargo.toml from ../../../traits/digest to ../../traits/digest ### Remaining Issues Build is progressing through dependency resolution. Currently updating git repositories and crates.io index. ### Next Steps 1. Continue monitoring build for any remaining dependency issues 2. Fix any missing or incorrect vendor paths as they appear
Author
Owner

Build State Update

Progress Made

Tree-Sitter Submodule (FIXED)

  • The tree-sitter submodule is properly initialized
  • File exists at /home/kade/reynard/vendor/tree-sitter/lib/Cargo.toml
  • Tree-sitter vendoring is complete

Blitz Submodule (FIXED)

  • The blitz submodule was broken (invalid git repository reference)
  • Successfully re-initialized with git submodule update --init services/blitz
  • Blitz now has proper Cargo.toml and all crates

Ambiggy Dependency (FIXED)

  • Added ambiggy as a submodule from kade/ambiggy
  • Successfully cloned and initialized

Vendor Dependencies Fixed

  • Added jpeg-encoder to vendor/image/Cargo.toml (missing dependency)
  • Added serde to vendor/image/Cargo.toml (missing dependency)
  • Initialized shell-pool submodule
  • Removed incomplete image-webp directory and commented out dependency
  • Added rgb as submodule from kade/rgb and uncommented dependency
  • Removed webp from default-formats feature

Tree-Sitter Elixir (FIXED)

  • Repository doesn't exist on git.sly.so/kade/tree-sitter-elixir
  • Removed from .gitmodules
  • Commented out references in blitz/Cargo.toml and crates/language/Cargo.toml

Tree-Sitter Go (FIXED)

  • Added tree-sitter-go as a submodule from kade/tree-sitter-go.git
  • Successfully cloned and initialized

Flate2-Rs (FIXED)

  • Removed incomplete flate2-rs directory (only had examples/)
  • Forked srijs/rust-crc32fast to kade/crc32fast on Forgejo
  • Added kade/flate2-rs as submodule
  • Updated vecstore/Cargo.toml to use vendored flate2-rs

CRC32Fast (FIXED)

  • Forked srijs/rust-crc32fast to kade/crc32fast on Forgejo
  • Added as submodule to vendor
  • Build now compiles crc32fast successfully

RGB (FIXED)

  • Added kade/rgb as submodule
  • Uncommented rgb dependency in image/Cargo.toml
  • Added back dep:rgb to avif feature

Notify Dependencies (FIXED)

  • Fixed notify dependency references to point to actual packages:
    • notify = { path = "../../vendor/notify/notify" }
    • notify-types = { path = "../../vendor/notify/notify-types" }

Tree-Sitter-Language Paths (FIXED)
Fixed all tree-sitter-language dependency paths to use correct relative path ../tree-sitter/crates/language:

  • tree-sitter-bash, tree-sitter-c, tree-sitter-cpp, tree-sitter-css, tree-sitter-diff
  • tree-sitter-embedded-template, tree-sitter-gitcommit, tree-sitter-git-rebase
  • tree-sitter-go, tree-sitter-heex, tree-sitter-html, tree-sitter-jsdoc, tree-sitter-json
  • tree-sitter-markdown, tree-sitter-python, tree-sitter-regex, tree-sitter-ruby
  • tree-sitter-rust, tree-sitter-typescript, tree-sitter-yaml

Digest Path (FIXED)

  • Fixed digest path in pbkdf2/Cargo.toml from ../../../traits/digest to ../../traits/digest
  • Fixed hmac and other dependency paths in pbkdf2/Cargo.toml

Remaining Issues

Image Crate API Incompatibilities (IN PROGRESS)
The vendored image crate has API incompatibilities with current dependency versions:

  • zune_jpeg::JpegDecoder doesn't have iptc() method
  • zune_jpeg::JpegDecoder::new_with_options signature changed
  • jpeg_encoder::Encoder doesn't have add_exif_metadata method

Next Steps

  1. Fix image crate API incompatibilities with zune-jpeg and jpeg-encoder
  2. Continue monitoring build for any remaining dependency issues
## Build State Update ### Progress Made **Tree-Sitter Submodule (FIXED)** - The tree-sitter submodule is properly initialized - File exists at `/home/kade/reynard/vendor/tree-sitter/lib/Cargo.toml` - Tree-sitter vendoring is complete **Blitz Submodule (FIXED)** - The blitz submodule was broken (invalid git repository reference) - Successfully re-initialized with `git submodule update --init services/blitz` - Blitz now has proper Cargo.toml and all crates **Ambiggy Dependency (FIXED)** - Added ambiggy as a submodule from kade/ambiggy - Successfully cloned and initialized **Vendor Dependencies Fixed** - Added jpeg-encoder to vendor/image/Cargo.toml (missing dependency) - Added serde to vendor/image/Cargo.toml (missing dependency) - Initialized shell-pool submodule - Removed incomplete image-webp directory and commented out dependency - Added rgb as submodule from kade/rgb and uncommented dependency - Removed webp from default-formats feature **Tree-Sitter Elixir (FIXED)** - Repository doesn't exist on git.sly.so/kade/tree-sitter-elixir - Removed from .gitmodules - Commented out references in blitz/Cargo.toml and crates/language/Cargo.toml **Tree-Sitter Go (FIXED)** - Added tree-sitter-go as a submodule from kade/tree-sitter-go.git - Successfully cloned and initialized **Flate2-Rs (FIXED)** - Removed incomplete flate2-rs directory (only had examples/) - Forked srijs/rust-crc32fast to kade/crc32fast on Forgejo - Added kade/flate2-rs as submodule - Updated vecstore/Cargo.toml to use vendored flate2-rs **CRC32Fast (FIXED)** - Forked srijs/rust-crc32fast to kade/crc32fast on Forgejo - Added as submodule to vendor - Build now compiles crc32fast successfully **RGB (FIXED)** - Added kade/rgb as submodule - Uncommented rgb dependency in image/Cargo.toml - Added back dep:rgb to avif feature **Notify Dependencies (FIXED)** - Fixed notify dependency references to point to actual packages: - notify = { path = "../../vendor/notify/notify" } - notify-types = { path = "../../vendor/notify/notify-types" } **Tree-Sitter-Language Paths (FIXED)** Fixed all tree-sitter-language dependency paths to use correct relative path `../tree-sitter/crates/language`: - tree-sitter-bash, tree-sitter-c, tree-sitter-cpp, tree-sitter-css, tree-sitter-diff - tree-sitter-embedded-template, tree-sitter-gitcommit, tree-sitter-git-rebase - tree-sitter-go, tree-sitter-heex, tree-sitter-html, tree-sitter-jsdoc, tree-sitter-json - tree-sitter-markdown, tree-sitter-python, tree-sitter-regex, tree-sitter-ruby - tree-sitter-rust, tree-sitter-typescript, tree-sitter-yaml **Digest Path (FIXED)** - Fixed digest path in pbkdf2/Cargo.toml from ../../../traits/digest to ../../traits/digest - Fixed hmac and other dependency paths in pbkdf2/Cargo.toml ### Remaining Issues **Image Crate API Incompatibilities (IN PROGRESS)** The vendored image crate has API incompatibilities with current dependency versions: - `zune_jpeg::JpegDecoder` doesn't have `iptc()` method - `zune_jpeg::JpegDecoder::new_with_options` signature changed - `jpeg_encoder::Encoder` doesn't have `add_exif_metadata` method ### Next Steps 1. Fix image crate API incompatibilities with zune-jpeg and jpeg-encoder 2. Continue monitoring build for any remaining dependency issues
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
kade/blitz#3
No description provided.