Skip to content

Incorrect suggestion when PIE fails to find a matching package #688

Description

@fpoirotte

What are you trying to do?
When PIE fails to locate an extension for installation, it displays an error message with an incorrect suggestion.

What platform, and PIE version are you using?

🥧 PHP Installer for Extensions (PIE) 1.0.0.0, from The PHP Foundation
You are running PHP 8.5.8
Target PHP installation: 8.5.8 nts, on Linux/OSX/etc x86_64 (from /usr/bin/php)
Using pie.json: /root/.config/pie/php8.5_f042bebc9cbf4433abc623e9802e3f7f/pie.json
Using pie.json: /root/.config/pie/php8.5_f042bebc9cbf4433abc623e9802e3f7f/pie.json
Tip: to include extensions in this list that PIE does not manage, use the --all flag.

Loaded PIE extensions:
(none)

Fedora Linux 44 (x86_64).

Steps to reproduce the issue

  1. pie install # where PIE fails to find a match for an extension

What do you expect to happen?
The error message should suggest using --select=extension=vendor/package

What is actually happening
The error message incorrectly suggests to use --select=vendor/package (note the missing "extension=" part)

Complete logs/output

[root@0446884c24bc test]# pie install 
🥧 PHP Installer for Extensions (PIE) 1.0.0.0, from The PHP Foundation
You are running PHP 8.5.8
Target PHP installation: 8.5.8 nts, on Linux/OSX/etc x86_64 (from /usr/bin/php)
Checking extensions for your project fpoirott/test (path: /root/test)
requires: ext-pam:3.0.x-dev 🚫 Missing
PIE could not find any potential matches for ext-pam; if you know which package to use, specify --select=vendor/package in the `pie install` options.

Finished checking extensions.

Anything else?
n/a

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingbug-confirmedMaintainers could reproduce the issue and will investigate

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions