dxw / whippet

Whippet is a framework for building WordPress sites that eases deployment, plugin management and build steps.
MIT License
14 stars 3 forks source link

whippet deps describe shows the most detailed semver version #234

Closed snim2 closed 10 months ago

snim2 commented 10 months ago

In our plugin repositories, we now tag commits with major version tags, e.g. 'v1' and more detailed tags, e.g. 'v1.2.3'.

When we run 'whippet deps describe' we always want the version number with the most fidelity.

Resolves: https://...

Testing

In a project repo, run whippet deps update both on this branch and from main. You should see differences like this:

❯ whippet-test deps describe
{
    "plugins": {
        ...
        "advanced-custom-fields-pro": "v6",
    }
}%

vs

❯ whippet-test deps describe
{
    "plugins": {
        ...
        "advanced-custom-fields-pro": "v6.2.5",
    }
}%