I'm developing a custom composer installer for proprietary software and I'm not really sure about how I'm supposed to test and debug it.
Composer loads plugins only when specified as dependency, so I create a test project which defines the plugin as a dependency, like this:
{
//...
"repositories": [
{
"type":"git",
"url":"/path/to/gitrepo"
}
],
"require":{
"myvendor/my-plugin":"dev-master"
}
}
The problem is that composer uses only the latest committed version, which means that if I want to test something I have to commit it first. This leads to a lot of "useless" one line change commits (like "oh I forgot a comma there"), which I don't really want to have in my git repo history.
I suppose there has to be a better way, but I didn't find one. Ideally I would define a directory as a repository (which would the be my working directory), but as far as I know there is nothing like a "directory" type repository.