Use semver packaging when using PHP Composer to download specific MetaBox-AIO

Support Meta Box AIO Use semver packaging when using PHP Composer to download specific MetaBox-AIO

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #45414
    Juan FernandezJuan Fernandez
    Participant

    Hi all

    I think it's a must that the MetaBox-AIO PHP Composer package allows to include the desired package version, as otherwise it forces all CI deployments to use the very latest version and can induce to breaking sites.

    What is preventing this from working? The AIO package can already be directly downloaded with versioning.

    Thanks!

    #45420
    PeterPeter
    Moderator

    Hello Juan,

    If you use Composer to get the premium version, there isn't a way to use a specific version, you always use the latest version. It is noted in the documentation https://docs.metabox.io/integration/#using-composer
    The version of premium extensions specified in composer.json must be dev-master. We don't support version constraints for premium extensions yet. You always use the latest version.

    #45422
    Juan FernandezJuan Fernandez
    Participant

    Hi Peter

    Yes, I know that the documentation says that, but that makes no sense, I think you should put an effort in make it possible. There is a risk that using the latest version breaks things in automated environments, and that increases the cost of maintenance. This is B2B we're talking about.

    The documentation is saying "yet" since the first time I used MetaBox, at least one year ago, is there any plan to implement it?

    Meanwhile I guess the only solution is to keep it in a private repo and disabling installing from your repo directly.

    Thanks!

    #45425
    PeterPeter
    Moderator

    Thank you for your feedback.

    Currently, there isn't a plan to implement it. I will inform the development team to consider supporting downloading specific versions from Composer.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.