php / php/frankenphp

No symlinks in vendor if embedded on static build

Open
#1,625 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Go
Stars
11.3k
Forks
488
Avg merge
4d 10h
Merged PRs (30d)
11

Description

What happened?

I'm using openapi-generator to generate code from a openapi spec. The resulting bundle will be placed into generated/api-bundle. According to the documentation, the composer.json should be edited like this:

    "repositories": [
        {
            "type": "path",
            "url": "generated/api-bundle"
        }
    ],

and composer will handle this by creating a directory based on the first part of package name and symlinks to this directory. So good so clear.

Due to the code, this is not support yet?

Build Type

Docker (Alpine)

Worker Mode

Yes

Operating System

GNU/Linux

CPU Architecture

x86_64

PHP configuration
---
Relevant log output

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with embed.go around the linked code at line 139 and inspect how embedded files are handled during a static Docker Alpine build. Reproduce the worker-mode build with Composer path repositories and verify that the generated vendor directory preserves the symlinked package paths.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, go, php
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.