composer-lock-diff icon indicating copy to clipboard operation
composer-lock-diff copied to clipboard

Compare link does not work with dev version of dependencies

Open hmharsh opened this issue 3 years ago • 1 comments

When we have composer package with version something like 0.0.x-dev then on composer update the output shown by ./vendor/bin/composer-lock-diff --md command is

| Production Changes                | From      | To        | Compare                                                                                      |
| eclipsegc/common-console          | 4949683   | 0.0.4     | [...](https://github.com/EclipseGc/CommonConsole/compare/4949683...0.0.4)                    |

Where the from column contain the commit ID instead of version, which is right but the link which is pointed in Compare column does not work as expected.

hmharsh avatar May 23 '22 09:05 hmharsh

Is it possible to identify such release versions by looking form a dot . into the string of From column, to confirm if its actual release version or a commit-id, then accordingly either

  • Not generate the link under compare.
  • Generate the correct link that show diff between the mentioned commit id under From column and commit corresponding to mentioned release version under To column.

hmharsh avatar May 23 '22 09:05 hmharsh