Spryker module update.

shlok.sharma
shlok.sharma IT Analyst Spryker Solution Partner Posts: 20 πŸ§‘πŸ»β€πŸš€ - Cadet
edited July 17 in Spryker Development

I want to know is there any way or command to update all the module at once?

Best Answer

Answers

  • fsmeier
    fsmeier Senior Software Engineer & Senior Technical Trainer Sprykee Posts: 966 πŸ› - Council (mod)
    Answer βœ“

    Heyhey,
    in theory composer update should do the trick up until the fixed versions in the composer.json.

    For others maybe this could help: https://stackoverflow.com/questions/41200946/update-composer-dependencies-to-latest-despite-static-version-numbers - but seems to be rather risky.

    I personally prefer to compare my project composer.json with the one of the demoshop-release I want to update to and make the changes in there and then call the composer-update command.

    All the best,

    Florian

  • shlok.sharma
    shlok.sharma IT Analyst Spryker Solution Partner Posts: 20 πŸ§‘πŸ»β€πŸš€ - Cadet

    Ok I will look into this, also i got these warnings while composer update :

  • fsmeier
    fsmeier Senior Software Engineer & Senior Technical Trainer Sprykee Posts: 966 πŸ› - Council (mod)

    Heyhey,
    please go inside the docker container to do the update to have all needed php extensions loaded and also to make sure that you use the right php version to do the composer operation:

    1. docker/sdk cli
    2. execute the composer command inside that cli-container

    All the best,

    Florian

  • shlok.sharma
    shlok.sharma IT Analyst Spryker Solution Partner Posts: 20 πŸ§‘πŸ»β€πŸš€ - Cadet

    After I ran this command : composer update , I got these errors :

  • shlok.sharma
    shlok.sharma IT Analyst Spryker Solution Partner Posts: 20 πŸ§‘πŸ»β€πŸš€ - Cadet
  • fsmeier
    fsmeier Senior Software Engineer & Senior Technical Trainer Sprykee Posts: 966 πŸ› - Council (mod)

    Hey, lets dive deeper into this:
    My first question here is: Why is there sth about php7.4 on your screenshot? php7.4 is outdated and does not even support security updates anymore.

    You are executing it now inside the docker/sdk cli, right?
    What are the exact commands you tried?

  • shlok.sharma
    shlok.sharma IT Analyst Spryker Solution Partner Posts: 20 πŸ§‘πŸ»β€πŸš€ - Cadet

    Yeah, php was outdated. Now i have updated php to 8.1 and after that i ran the command in the docker/sdk cli and i got this error :

  • fsmeier
    fsmeier Senior Software Engineer & Senior Technical Trainer Sprykee Posts: 966 πŸ› - Council (mod)

    Heyhey,

    since some more reported the "curl error 55" in the last weeks i just created a thread, hope it helps!

  • shlok.sharma
    shlok.sharma IT Analyst Spryker Solution Partner Posts: 20 πŸ§‘πŸ»β€πŸš€ - Cadet

    Still facing problem because of fixed version of some modules!!

  • fsmeier
    fsmeier Senior Software Engineer & Senior Technical Trainer Sprykee Posts: 966 πŸ› - Council (mod)

    Yeah, but these are follow-ups of changes you did within the composer.json.

    In this case it also says exactly what is wrong.

    Now it is up to you to solve these fixed dependencies by updating them step by step.
    A helpful command could also be compose why package-name

  • shlok.sharma
    shlok.sharma IT Analyst Spryker Solution Partner Posts: 20 πŸ§‘πŸ»β€πŸš€ - Cadet

    when I try to update single module it is giving me lines of this notice messeges :

  • sebastian.wagner
    sebastian.wagner enrolled to Back End Development Basics Spryker Solution Partner Posts: 7 πŸ§‘πŸ»β€πŸš€ - Cadet

    sllh/composer-versions-checkis deprecated and can be removed safely.

  • shlok.sharma
    shlok.sharma IT Analyst Spryker Solution Partner Posts: 20 πŸ§‘πŸ»β€πŸš€ - Cadet

    How can I remove sllh/composer-versions-check ??

  • fsmeier
    fsmeier Senior Software Engineer & Senior Technical Trainer Sprykee Posts: 966 πŸ› - Council (mod)

    I thought you removed it already after mentioning it?

  • shlok.sharma
    shlok.sharma IT Analyst Spryker Solution Partner Posts: 20 πŸ§‘πŸ»β€πŸš€ - Cadet

    πŸ˜… I tried that time but it was not removed, but now it is removed.