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

recipe_template_relative processing is broken for gitlab private recipe #1022

Open
p-golovin opened this issue Apr 22, 2024 · 0 comments
Open

Comments

@p-golovin
Copy link

I configure flex endpoint for private gitlab repo with this instruction:
https://symfony.com/doc/current/setup/flex_private_recipes.html#gitlab-3

{
    "extra": {
        "symfony": {
            "endpoint": [
                "https://gitlab.com/api/v4/projects/your-gitlab-project-id/repository/files/index.json/raw?ref=main",
                "flex://defaults"
            ]
        }
    }
}

And use recipe_template_relative key in recipes index.json.

Regexp doesn't work correctly in https://github.com/symfony/flex/blob/2.x/src/Downloader.php#L222, it replace not index.json with relative path, but raw:

Failed to download recipe: The "https://gitlab.com/api/v4/projects/my-project-id/repository/files/index.json/my-vendor.my-package.1.0.json?ref=main" file could not be downloaded (HTTP/2 404 ):
{"error":"404 Not Found"}
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

No branches or pull requests

1 participant