mirror of
https://github.com/0xrsydn/nix-hermes-agent.git
synced 2026-08-07 00:53:52 +00:00
fix: bump hermes-agent 0.3.0 → 0.4.0, fix CI update script targeting wrong fields
- Stable: pinVersion 0.3.0 → 0.4.0 (v2026.3.23, commit 8416bc2) - Nightly: 0.3.0-unstable-2026-03-22 → 0.4.0-unstable-2026-03-25 (commit e5691ee) - Fix update-pins.sh: target pinVersion/pinRev/pinHash instead of generic version/rev/hash which incorrectly matched fal-client fields - Add cherrypy test override for macOS Nix sandbox compatibility - No litellm: pythonRemoveDeps still strips it from wheel metadata Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
3a9dc709f7
commit
76d1677e94
3 changed files with 16 additions and 12 deletions
|
|
@ -46,7 +46,7 @@ fi
|
|||
log "Parsed version: $upstream_version"
|
||||
|
||||
# --- Compare with current ---
|
||||
current_version=$(awk -F'"' '/^ version = /{print $2}' "$package_file" | head -1)
|
||||
current_version=$(awk -F'"' '/pinVersion \? "/{print $2}' "$package_file" | head -1)
|
||||
log "Current pinned version: $current_version"
|
||||
|
||||
if [[ "$current_version" == "$upstream_version" ]]; then
|
||||
|
|
@ -95,10 +95,10 @@ log "Computing fetchFromGitHub hash (with submodules)..."
|
|||
# Save original
|
||||
cp "$package_file" "$package_file.bak"
|
||||
|
||||
# Update version, rev, and set hash to empty
|
||||
perl -0pi -e "s|version = \"[^\"]+\";|version = \"${upstream_version}\";|" "$package_file"
|
||||
perl -0pi -e "s|rev = \"[^\"]+\";|rev = \"${tag_sha}\";|" "$package_file"
|
||||
perl -0pi -e 's|hash = "sha256-[^"]+";|hash = "";|' "$package_file"
|
||||
# Update pinVersion, pinRev, and set pinHash to empty
|
||||
perl -0pi -e "s|pinVersion \\? \"[^\"]+\"|pinVersion \\? \"${upstream_version}\"|" "$package_file"
|
||||
perl -0pi -e "s|pinRev \\? \"[^\"]+\"|pinRev \\? \"${tag_sha}\"|" "$package_file"
|
||||
perl -0pi -e 's|pinHash \? "sha256-[^"]+"|pinHash \? ""|' "$package_file"
|
||||
|
||||
# Build and capture the correct hash from the error
|
||||
build_log=$(mktemp)
|
||||
|
|
@ -121,7 +121,7 @@ log "Source hash: $source_hash"
|
|||
|
||||
# Update with the correct hash
|
||||
if [[ -n "$source_hash" ]]; then
|
||||
perl -0pi -e "s|hash = \"[^\"]*\";|hash = \"${source_hash}\";|" "$package_file"
|
||||
perl -0pi -e "s|pinHash \\? \"[^\"]*\"|pinHash \\? \"${source_hash}\"|" "$package_file"
|
||||
fi
|
||||
|
||||
# --- Validate build ---
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue