Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions home/.chezmoidata/packages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,16 @@ extensions:
# macOS-specific extensions
darwin:
- ms-vscode-remote.remote-ssh

# Version-pinned packages for Renovate tracking
# These packages are monitored for updates by Renovate
versioned:
github_releases:
# GitHub CLI - github-releases/cli/cli
- name: gh
repo: cli/cli
current_version: "2.61.0"
# Chezmoi - github-releases/twpayne/chezmoi
- name: chezmoi
repo: twpayne/chezmoi
current_version: "2.54.0"
20 changes: 16 additions & 4 deletions renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,20 @@
"enabled": true
},
"pip_requirements": {
"managerFilePatterns": [
"/(^|/)requirements\\.txt$/"
]
}
"fileMatch": ["(^|/)requirements\\.txt$"]
},
"customManagers": [
{
"customType": "regex",
"description": "Update GitHub releases in packages.yaml",
"fileMatch": [
"(^|/)home/\\.chezmoidata/packages\\.yaml$",
"(^|/)\\.chezmoidata/packages\\.yaml$"
],
"matchStrings": [
"- name: (?<depName>[^\\n]+)\\n\\s+repo: (?<packageName>[^\\n]+)\\n\\s+current_version: [\"']?(?<currentValue>[^\"'\\n]+)[\"']?"
],
"datasourceTemplate": "github-releases"
}
]
}
9 changes: 8 additions & 1 deletion scripts/validate-packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,14 @@
set -e

SOURCE_DIR="${1:-.}"
PACKAGES_FILE="${SOURCE_DIR}/.chezmoidata/packages.yaml"
# Support both standalone .chezmoidata (legacy) and home/.chezmoidata (current)
if [ -f "${SOURCE_DIR}/.chezmoidata/packages.yaml" ]; then
PACKAGES_FILE="${SOURCE_DIR}/.chezmoidata/packages.yaml"
elif [ -f "${SOURCE_DIR}/home/.chezmoidata/packages.yaml" ]; then
PACKAGES_FILE="${SOURCE_DIR}/home/.chezmoidata/packages.yaml"
else
PACKAGES_FILE="${SOURCE_DIR}/.chezmoidata/packages.yaml" # fallback for error message
fi

echo "Validating packages.yaml..."

Expand Down