Adds a new rake task
plugin:checkout_compatible[plugin-name] that check out compatible plugin
Supports a .discourse-compatibility file in the root of plugins that list out a plugin’s compatibility with certain discourse versions:
2.5.0.beta6: some-git-hash 2.4.4.beta4: some-git-tag 2.2.0: git-reference
This ensures older Discourse installs are able to find and install older versions of plugins without intervention, through the manifest only.
It iterates through the versions in descending order. If the current Discourse version matches an item in the manifest, it checks out the listed plugin target. If the Discourse version is greater than an item in the manifest, it checks out the next highest version listed in the manifest.
If no versions match, it makes no change.
It will also be pretty simple to integrate this task into docker_manager and our pups files once merged.