Skip to content

Commit fd095ba

Browse files
committed
fix(catalog): improve version detection and install methods
- ansible-core: add binary_name for version detection - git: add PPA for latest versions - git-filter-repo: add version_command (--version outputs git hash) - glab: change github_repo to gitlab_project - node: add version_command for nvm default - python: add version_command for uv-managed Python - pnpm: add available_methods for reconcile system - pip/pipx/poetry/yarn: minor fixes
1 parent 3ccc59e commit fd095ba

12 files changed

Lines changed: 40 additions & 24 deletions

catalog/ansible-core.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ansible-core",
3-
"install_method": "pipx",
3+
"install_method": "uv_tool",
44
"description": "Ansible core automation engine",
55
"homepage": "https://ansible.com",
66
"github_repo": "ansible/ansible",

catalog/docker.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,5 @@
1010
"display_name": "Docker CLI",
1111
"install_action": "install",
1212
"order": 200
13-
},
14-
"pinned_version": "29.0.0"
13+
}
1514
}

catalog/git-filter-repo.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,7 @@
33
"install_method": "uv_tool",
44
"description": "Versatile tool for rewriting git history (replacement for git filter-branch)",
55
"homepage": "https://github.com/newren/git-filter-repo",
6-
"package_name": "git-filter-repo"
6+
"package_name": "git-filter-repo",
7+
"binary_name": "git-filter-repo",
8+
"version_command": "uv tool list 2>/dev/null | grep '^git-filter-repo ' | sed 's/git-filter-repo //' | tr -d 'v'"
79
}

catalog/git.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,12 @@
55
"homepage": "https://git-scm.com",
66
"github_repo": "git/git",
77
"binary_name": "git",
8+
"ppa": "git-core/ppa",
89
"packages": {
910
"apt": "git",
1011
"brew": "git",
1112
"dnf": "git",
1213
"pacman": "git"
1314
},
14-
"notes": "For latest version on Ubuntu, use PPA: add-apt-repository ppa:git-core/ppa"
15+
"notes": "Uses git-core PPA for latest version on Ubuntu/Debian"
1516
}

catalog/glab.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"install_method": "github_release_binary",
44
"description": "GitLab CLI tool bringing GitLab to your command line",
55
"homepage": "https://gitlab.com/gitlab-org/cli",
6-
"github_repo": "gitlab-org/cli",
6+
"gitlab_project": "gitlab-org/cli",
77
"binary_name": "glab",
88
"download_url_template": "https://gitlab.com/api/v4/projects/gitlab-org%2Fcli/packages/generic/glab/{version_nov}/glab_{version_nov}_linux_{arch}.tar.gz",
99
"arch_map": {

catalog/node.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
"github_repo": "nodejs/node",
77
"binary_name": "node",
88
"script": "install_node.sh",
9+
"version_command": ". ~/.nvm/nvm.sh 2>/dev/null && nvm version default 2>/dev/null | tr -d 'v'",
910
"guide": {
1011
"display_name": "Node.js stack",
1112
"install_action": "reconcile",
1213
"order": 40
13-
},
14-
"pinned_version": "25.0.0"
14+
}
1515
}

catalog/pip.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,5 @@
1111
"dnf": "python3-pip",
1212
"pacman": "python-pip"
1313
},
14-
"notes": "pip typically comes with Python 3. Use python3 -m pip if pip command is not available.",
15-
"pinned_version": "never"
14+
"notes": "pip typically comes with Python 3. Use python3 -m pip if pip command is not available."
1615
}

catalog/pipx.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,5 @@
1010
"brew": "pipx",
1111
"dnf": "pipx",
1212
"pacman": "python-pipx"
13-
},
14-
"pinned_version": "never"
13+
}
1514
}

catalog/pnpm.json

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,28 @@
55
"homepage": "https://pnpm.io/",
66
"package_name": "pnpm",
77
"binary_name": "pnpm",
8-
"packages": {
9-
"apt": "pnpm",
10-
"brew": "pnpm",
11-
"dnf": "pnpm",
12-
"pacman": "pnpm"
13-
},
8+
"available_methods": [
9+
{
10+
"method": "npm",
11+
"priority": 1,
12+
"config": {
13+
"package": "pnpm"
14+
}
15+
},
16+
{
17+
"method": "apt",
18+
"priority": 2,
19+
"config": {
20+
"package": "pnpm"
21+
}
22+
},
23+
{
24+
"method": "brew",
25+
"priority": 3,
26+
"config": {
27+
"formula": "pnpm"
28+
}
29+
}
30+
],
1431
"notes": "Can be installed via npm (npm install -g pnpm), apt, or brew"
1532
}

catalog/poetry.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,5 @@
1111
"dnf": "poetry",
1212
"pacman": "python-poetry"
1313
},
14-
"notes": "Some distributions may require installing via pipx or the official installer: curl -sSL https://install.python-poetry.org | python3 -",
15-
"pinned_version": "never"
14+
"notes": "Some distributions may require installing via pipx or the official installer: curl -sSL https://install.python-poetry.org | python3 -"
1615
}

0 commit comments

Comments
 (0)