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 · 0 comments
Open

Add source in composer package #33066

lutek opened this issue Dec 31, 2024 · 0 comments
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
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

No branches or pull requests

2 participants