Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PIE 0.1.0: Could not find release by tag name for mongodb/mongodb-extension:1.20.0 #68

Closed
mickverm opened this issue Oct 11, 2024 · 7 comments · Fixed by #69
Closed
Labels
bug Something isn't working

Comments

@mickverm
Copy link
Contributor

mickverm commented Oct 11, 2024

When trying out PIE 0.1.0, I figured out that the @todo above this line actually applies. 😛

The issue was initially reported on the mongodb/mongo-php-driver repo: mongodb/mongo-php-driver#1716

php .\pie.phar install mongodb/mongodb-extension -vvv

Box Requirements Checker
========================

> Using PHP 8.3.12
> PHP is using the following php.ini file:
  C:\Apache24\php\php.ini

> Checking Box requirements:
  ✔ This application requires a PHP version matching "8.1.*||8.2.*||8.3.*||8.4.*".
  ✔ The package "guzzlehttp/guzzle" requires the extension "json".
  ✔ The package "composer/ca-bundle" requires the extension "openssl".
  ✔ The package "composer/ca-bundle" requires the extension "pcre".
  ✔ This application requires the extension "zip".
  ✔ The package "symfony/service-contracts" conflicts with the extension "psr".


 [OK] Your system is ready to run the application.


Loading config file C:/Users/mv/AppData/Roaming/Composer/config.json
Loading config file C:/Users/mv/AppData/Roaming/Composer/auth.json
Checked CA file C:\Apache24\php\extras\ssl\curl-ca-bundle.crt: valid
Executing command (C:\): git branch -a --no-color --no-abbrev -v
Executing command (C:\): git describe --exact-match --tags
Executing command (CWD): git --version
Executing command (C:\): git log --pretty="%H" -n1 HEAD --no-show-signature
Executing command (C:\): hg branch
Executing command (C:\): fossil branch list
Executing command (C:\): fossil tag list
Executing command (C:\): svn info --xml
Reading C:/Users/mv/AppData/Roaming/Composer/composer.json (C:\Users\mv\AppData\Roaming\Composer\composer.json)
Loading config file C:/Users/mv/AppData/Roaming/Composer/config.json
Loading config file C:/Users/mv/AppData/Roaming/Composer/auth.json
Loading config file C:/Users/mv/AppData/Roaming/Composer/composer.json (C:\Users\mv\AppData\Roaming\Composer\composer.json)
Loading config file C:\Users\mv\AppData\Roaming\Composer/auth.json
Reading C:\Users\mv\AppData\Roaming\Composer/auth.json (C:\Users\mv\AppData\Roaming\Composer\auth.json)
This command may need elevated privileges, and may prompt you for your password.
You are running PHP 8.3.12
Target PHP installation: 8.3.12 ts, vs16, on Windows x86_64 (from C:\Apache24\php\php.exe)
Downloading https://repo.packagist.org/packages.json
[200] https://repo.packagist.org/packages.json
Writing C:/Users/mv/AppData/Local/Composer/repo/https---repo.packagist.org/packages.json into cache
Downloading https://repo.packagist.org/p2/mongodb/mongodb-extension.json
[200] https://repo.packagist.org/p2/mongodb/mongodb-extension.json
Writing C:/Users/mv/AppData/Local/Composer/repo/https---repo.packagist.org/provider-mongodb~mongodb-extension.json into cache
Found package: mongodb/mongodb-extension:1.20.0 which provides ext-mongodb

In CouldNotFindReleaseAsset.php line 28:

  [Php\Pie\Downloading\Exception\CouldNotFindReleaseAsset]
  Could not find release by tag name for mongodb/mongodb-extension:1.20.0


Exception trace:
  at phar://C:/pie.phar/src/Downloading/Exception/CouldNotFindReleaseAsset.php:28
 Php\Pie\Downloading\Exception\CouldNotFindReleaseAsset::forPackageWithMissingTag() at phar://C:/pie.phar/src/Downloading/GithubPackageReleaseAssets.php:100
 Php\Pie\Downloading\GithubPackageReleaseAssets->getReleaseAssetsForPackage() at phar://C:/pie.phar/src/Downloading/GithubPackageReleaseAssets.php:43
 Php\Pie\Downloading\GithubPackageReleaseAssets->findWindowsDownloadUrlForPackage() at phar://C:/pie.phar/src/Downloading/WindowsDownloadAndExtract.php:26
 Php\Pie\Downloading\WindowsDownloadAndExtract->__invoke() at phar://C:/pie.phar/src/Command/CommandHelper.php:183
 Php\Pie\Command\CommandHelper::downloadPackage() at phar://C:/pie.phar/src/Command/InstallCommand.php:52
 Php\Pie\Command\InstallCommand->execute() at phar://C:/pie.phar/vendor/symfony/console/Command/Command.php:326
 Symfony\Component\Console\Command\Command->run() at phar://C:/pie.phar/vendor/symfony/console/Application.php:1078
 Symfony\Component\Console\Application->doRunCommand() at phar://C:/pie.phar/vendor/symfony/console/Application.php:324
 Symfony\Component\Console\Application->doRun() at phar://C:/pie.phar/vendor/symfony/console/Application.php:175
 Symfony\Component\Console\Application->run() at phar://C:/pie.phar/bin/pie:63
 require() at C:\pie.phar:15

install [--with-php-config [WITH-PHP-CONFIG]] [--with-php-path [WITH-PHP-PATH]] [--] <requested-package-and-version>

It would also be nice to see where it is attempting to download the package from when running the install command with the -vvv flag.

@asgrim asgrim added the bug Something isn't working label Oct 11, 2024
@asgrim
Copy link
Collaborator

asgrim commented Oct 11, 2024

@mickverm thanks - good spot. Please note as well at the moment, we're still trying to work out how to get the mongodb extension working, there's another issue #39 that means it won't build at the moment.

@mickverm
Copy link
Contributor Author

I found that issue as well, but thought it wouldn't apply because prebuilt binaries are used on Windows?

@asgrim
Copy link
Collaborator

asgrim commented Oct 11, 2024

I found that issue as well, but thought it wouldn't apply because prebuilt binaries are used on Windows?

Yes - thanks, you're right, I missed that it was for Windows, trying to do too many things at once :)

@mickverm
Copy link
Contributor Author

mickverm commented Oct 14, 2024

After the (maybe not so proper) fix of #69, I get the following exception:

Could not find release asset for mongodb/mongodb-extension:1.20.0 named one of "php_mongodb-1.20.0-8.3-ts-vs16-x86_64.zip, php_mongodb-1.20.0-8.3-vs16-ts-x86_64.zip"

The release assets of mongodb/mongodb-extension do not contain the 86_, which PIE expects. Is this a hard requirement, or is this something that could be adapted in PIE itself?

@jmikola
Copy link
Member

jmikola commented Oct 14, 2024

The release assets of mongodb/mongodb-extension do not contain the 86_, which PIE expects. Is this a hard requirement, or is this something that could be adapted in PIE itself?

I'll note that the DLLs produced by PECL don't even include that. The architecture suffixes are either "x86" or "x64". That may suggest it's just a PIE fix.

@mickverm
Copy link
Contributor Author

I found out that xdebug has download links with x86_64, so maybe both need to be supported?

@derickr
Copy link
Member

derickr commented Oct 14, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
4 participants