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

Fix Platform.sh template #1031

Open
wants to merge 1 commit into
base: 1.13
Choose a base branch
from

Conversation

rhubinak
Copy link

@rhubinak rhubinak commented Oct 2, 2024

Missing sodium PHP extension results in an inability to build the the project on platform.sh

      Found a `composer.json`, installing dependencies.
        W: Installing dependencies from lock file (including require-dev)
        W: Verifying lock file contents can be installed on current platform.
        W: Your lock file does not contain a compatible set of packages. Please run composer update.
        W: 
        W:   Problem 1
        W:     - lcobucci/jwt is locked to version 4.3.0 and an update of this package was not requested.
        W:     - lcobucci/jwt 4.3.0 requires ext-sodium * -> it is missing from your system. Install or enable PHP's sodium extension.
        W:   Problem 2
        W:     - lcobucci/jwt 4.3.0 requires ext-sodium * -> it is missing from your system. Install or enable PHP's sodium extension.
        W:     - lexik/jwt-authentication-bundle v2.17.0 requires lcobucci/jwt ^3.4|^4.0 -> satisfiable by lcobucci/jwt[4.3.0].
        W:     - lexik/jwt-authentication-bundle is locked to version v2.17.0 and an update of this package was not requested.
        W: 
        W: To enable extensions, verify that they are enabled in your .ini files:
        W:     - /etc/php/8.3/cli/php.ini
        W: You can also run `php --ini` in a terminal to see which files are used by PHP in CLI mode.
        W: Alternatively, you can run Composer with `--ignore-platform-req=ext-sodium` to temporarily ignore these required extensions.
      
      E: Error building project: `composer` could not be run.

    E: Error: Unable to build application, aborting.

This will fix it resulting in a successful build.

@rhubinak rhubinak requested review from a team as code owners October 2, 2024 10:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant