This commit is contained in:
m3tm3re
2026-01-18 07:43:57 +01:00
parent 6398637353
commit ae9a0ceb10
2 changed files with 16 additions and 4 deletions

View File

@@ -74,8 +74,20 @@ jobs:
local pkg=$1
local before_hash=$(git rev-parse HEAD)
# Build arguments array
local args=("--flake" "--commit")
# Special handling for opencode
if [ "$pkg" = "opencode" ]; then
echo " Adding --subpackage node_modules for opencode"
args+=("--subpackage" "node_modules")
fi
# Add package name
args+=("$pkg")
echo "Checking $pkg..."
if nix-update --flake --commit "$pkg" 2>&1 | tee /tmp/update-${pkg}.log; then
if nix-update "${args[@]}" 2>&1 | tee /tmp/update-${pkg}.log; then
if [ "$(check_commit "$before_hash")" = "true" ]; then
echo "✓ Updated $pkg"
return 0