Skip to content

Installing a plugin with commit sha as ref fails #1774

@sophio-japharidze-sonarsource

Description

Hello!

When trying to install plugin that has a commit sha fixed in external.json fails with an error.

Steps to reproduce:

  • Run /plugin install sonarqube@awesome-copilot command
  • Observe the error
✗ Failed to install plugin: Failed to fetch GitHub plugin SonarSource/sonarqube-agent-plugins: Error: Command failed: git clone --depth 1 --progress --branch 
  b1492121b8591fba7dc477392ae0ea6be924fb31 https://github.com/SonarSource/sonarqube-agent-plugins.git 
  /Users/sophio.japharidze/Library/Caches/copilot/marketplaces/SonarSource--sonarqube-agent-plugins
  Cloning into '/Users/sophio.japharidze/Library/Caches/copilot/marketplaces/SonarSource--sonarqube-agent-plugins'...
  fatal: Remote branch b1492121b8591fba7dc477392ae0ea6be924fb31 not found in upstream origin

I think the clone command is wrong, it should not be trying to fix the --branch when commit sha is provided. the ai-ready plugin has the same problem.

Would it be possible to update ref of sonarqube plugin to master please? I am one of the maintaners and have asked for it also in the original issue.

We appreciate your help on this 🙇‍♀️

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions