Composer Testing and Debugging Plugins

I am developing my own installer for the linker for proprietary software, and I'm not quite sure how I should test and debug it.

Composer only downloads plugins if it is specified as a dependency, so I am creating a test project that defines the plugin as a dependency, for example:

{
    //...
    "repositories": [
        {
            "type":"git",
            "url":"/path/to/gitrepo"
        }
    ],
    "require":{
        "myvendor/my-plugin":"dev-master"
    }
}

The problem is that the composer uses only the latest perfect version, which means that if I want to check something, I must first fix it. This leads to a lot of โ€œuselessโ€ changes on one line (like โ€œoh, I forgot the comma thereโ€), which I really don't want to have a git repo in my history.

, , . ( ), , "".

+4
2

. , , . s . . fooobar.com/questions/78694/... .

.

. : enter image description here

+3

tags --force push -. -

{
    //...
    "repositories": [
        {
            "type":"git",
            "url":"/path/to/gitrepo"
        }
    ],
    "require":{
        "myvendor/my-plugin":"dev-tag"
    }
}

, , dev-tag,

git push origin master --force --tags

, .

composer update

.

, !

0

Source: https://habr.com/ru/post/1535538/


All Articles