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

Remote fallback to github/packagist? #126

Open
OvalMedia opened this issue Nov 27, 2024 · 0 comments
Open

Remote fallback to github/packagist? #126

OvalMedia opened this issue Nov 27, 2024 · 0 comments

Comments

@OvalMedia
Copy link

Maybe I have a fundamental flaw in my understanding of things, but here is what I am trying to achieve.

In my local dev project(s) I want to install modules (magento) by referencing to their local path folder.
This way I can work on those modules (in their original location) while in use inside a (or multiple) project(s). When changes in the modules are ready for publication they get committed to github and published via packagist.

Now when I use studio I end up with a composer.lock that references the modules from my local source. But this does not work in the remote production environment as there are no local sources remotely. On the remote machine composer should grab the modules from github/packagist.

Am I wrong studio assuming would help me with this issue?

This is a composer.lock from a test setup:


{
    "_readme": [
        "This file locks the dependencies of your project to a known state",
        "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
        "This file is @generated automatically"
    ],
    "content-hash": "176bdd05e506333feee3a7bba56a0233",
    "packages": [],
    "packages-dev": [
        {
            "name": "mynamespace/testproject",
            "version": "dev-main",
            "dist": {
                "type": "path",
                "url": "/libs/mynamespace/testproject",
                "reference": "5b5fba674e14ae4fb9303e34625b8902f5a0f0dc"
            },
            "type": "magento2-module",
            "autoload": {
                "files": [
                    "src/registration.php"
                ],
                "psr-4": {
                    "mynamespace\\testproject\\": "src/"
                }
            },
            "license": [
                "MIT"
            ],
            "authors": [
                {
                    "name": "John Doe",
                    "email": "[email protected]"
                }
            ],
            "transport-options": {
                "relative": false
            }
        }
    ],
    "aliases": [],
    "minimum-stability": "stable",
    "stability-flags": {
        "mynamespace/testproject": 20
    },
    "prefer-stable": false,
    "prefer-lowest": false,
    "platform": [],
    "platform-dev": [],
    "plugin-api-version": "2.3.0"
}


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