Skip to content

Unable to install specific version of symfony-cli #860

Closed

Description

@marmorag

Describe the bug
I am unable to install a specific version of the symfony-cli tool. Trying both symfony:5.9.1 and symfony:v5.9.1 result in the action installing the latest version available

Version

  • I have checked releases, and the bug exists in the latest patch version of v1 or v2.
  • v2
  • v1

Runners

  • GitHub Hosted
  • Self Hosted

Operating systems
ubuntu-latest

PHP versions
8.1

To Reproduce

- name: Setup PHP
  uses: shivammathur/setup-php@v2
  with:
    php-version: 8.1
    extensions: iconv, intl
    tools: symfony:5.9.1

Expected behavior

setup-php action installing symfony-cli in v5.9.1

Screenshots/Logs

image

Additional context

I've tried multiple syntax/tool name, all resulting in the actions installing the latest version

name: Test setup php

on:
  workflow_dispatch: {}

jobs:
  setup:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        tool: [symfony, symfony-cli]
        version: ["v5.9.1", "5.9.1"]
    steps:
      - uses: actions/checkout@v4

      - name: Setup PHP
        uses: shivammathur/setup-php@v2
        with:
          php-version: 8.1
          extensions: iconv, intl
          tools: ${{ matrix.tool }}:${{ matrix.version }}

Are you willing to submit a PR?

Activity

  1. shivammathur commented on Jan 21, 2025

    @shivammathur
    Owner

    If someone (preferably someone in the symfony org or a contributor to the project) would like to maintain the support for the symfony-cli installer script in setup-php, I would be happy to merge the support for it.

  2. added
    enhancementNew feature or request
    help wantedExtra attention is needed
    and removed
    bugSomething isn't working
    on Jan 21, 2025
  3. Repository owner locked and limited conversation to collaborators on Jul 3, 2025
  4. converted this issue into a discussion #970 on Jul 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requesthelp wantedExtra attention is needed

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions