Skip to content

[BUG] Github CI lint action failing for new project #897

Description

@y8a5y

TL;DR: By default on new projects the GH action "lint" is not working.

Base output:

Error: Your lock file does not contain a compatible set of packages. Please run composer update.

Problem 1
  - symfony/framework-bundle is locked to version v8.0.5 and an update of this package was not requested.
  - symfony/framework-bundle v8.0.5 requires ext-xml * -> it is missing from your system. Install or enable PHP's xml extension.

I tried to add COMPOSER_IGNORE_PLATFORM_REQS: 1 to the job's env as prescribed here but that only shifted the issue.

I now get:

Script cache:clear returned with error code 1
!!  
!!  In FrameworkExtension.php line 507:
!!                                                                                 
!!    Session support cannot be enabled as the session extension is not installed  
!!    . See https://php.net/session.installation for instructions.

I did not find a fix yet but I wanted to let you know about it

Steps to reproduce:

  1. start a new symfony project
  2. follow Using Symfony Docker with an existing project
  3. push to your GH repo and wait for the CI to fail

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions