Commit 080e296
feat(composer): switch from apt to binary installation method
Changes installation method from package_manager to dedicated binary installer.
Why:
- apt version lags behind (2.7.1 vs 2.8.12)
- Binary installation is the official recommended method
- Provides access to latest stable releases
Changes:
- catalog/composer.json:
* install_method: package_manager → dedicated_script
* Added script: install_composer.sh
* Added github_repo for version tracking
* Removed package manager definitions
- scripts/install_composer.sh: NEW
* Downloads latest stable phar from getcomposer.org
* Verifies phar validity with PHP
* Installs to /usr/local/bin/composer (requires sudo)
* Supports COMPOSER_INSTALL_DIR env var for custom location
* Provides clear error messages and installation feedback
Installation:
$ scripts/install_tool.sh composer update
Binary will be installed to /usr/local/bin/composer which takes
precedence over /usr/bin/composer (apt version), automatically
preferring the newer binary installation.
Reference: https://getcomposer.org/doc/faqs/how-to-install-composer-programmatically.md
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 4df98e3 commit 080e296
2 files changed
Lines changed: 66 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
| 8 | + | |
| 9 | + | |
13 | 10 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
0 commit comments