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

Add source in composer package #33066

Open
lutek opened this issue Dec 31, 2024 · 3 comments · May be fixed by #33502
Open

Add source in composer package #33066

lutek opened this issue Dec 31, 2024 · 3 comments · May be fixed by #33502
Labels
topic/packages type/proposal The new feature has not been accepted yet but needs to be discussed first.

Comments

@lutek
Copy link

lutek commented Dec 31, 2024

Feature Description

Add source in composer package. Package can be linked with repository, should be used as source.
https://getcomposer.org/doc/05-repositories.md#package

Source: The source is used for development. This will usually originate from a source code repository, such as git. You can fetch this when you want to modify the downloaded package.

On 'composer show' i get empty source, even though composer.json specifies preferred source for selected package.

composer.json

    "config": {
        "optimize-autoloader": true,
        "sort-packages": true,
        "preferred-install": {
            "ecommercebox/*": "source"
        }
    },
❯ composer show ecommercebox/sw-plugin-xxx
name     : ecommercebox/sw-plugin-xxx
descrip. : xxx Shops API
keywords : 
versions : * x.x.x
released : 2024-12-31, today
type     : shopware-platform-plugin
license  : proprietary
homepage : 
source   : []  
dist     : [zip] https://xxx.xxx/api/packages/shopware/composer/files/ecommercebox%2Fsw-plugin-xxx/x.x.x/ecommercebox-sw-plugin-xxx.x.x.x.zip 
path     : /Users/lutek/www/xxx.local/vendor/ecommercebox/sw-plugin-xxx
names    : ecommercebox/sw-plugin-xxx

Screenshots

No response

@lutek lutek added the type/proposal The new feature has not been accepted yet but needs to be discussed first. label Dec 31, 2024
@iVegas
Copy link

iVegas commented Jan 20, 2025

Related #20871

@iVegas
Copy link

iVegas commented Jan 20, 2025

@lunny lunny linked a pull request Feb 5, 2025 that will close this issue
@lunny
Copy link
Member

lunny commented Feb 5, 2025

I sent #33502 to resolve this, please help to review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic/packages type/proposal The new feature has not been accepted yet but needs to be discussed first.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants