Stop overriding for the development snapshot module I have a development snapshot for a module (ABC-8.x-1.x-dev). I added 4 Patches. Now the developer does commit updates to the module.
By running composer update, I will loose all my patches.
When I remove the module name from composer.json, the module gets deleted. I have read that I should remove the composer.json file within the module.
Is there some kind of sub-version that defines the commit or so, for example &quot;drupal/abc&quot;: &quot;~1.0-dev-FD1512&quot; or &quot;drupal/abc&quot;: &quot;~1.0-dev-221&quot;?
Instead of trying to tie yourself to a specific commit, you might consider using composer patches instead:

{
  ...
  "require": {
    "cweagans/composer-patches": "^1.0",
    "drupal/abc": "~1.0-dev"
  },
  "extra": {
    "patches": {
      "drupal/abc": {
        "Fix for foo": "https://url/to/foo-patch",
        "Fix for bar": "https://url/to/bar-patch"
      }
    }
  }
  ...
}


Patches will be applied on install/update of the relevant packages.