Zend certified PHP/Magento developer

magento2 cloud composer.lock file not updated

I am trying to push code from my local to staging and getting the below error. Shouldn’t on deploy magento update the composer.lock file based on what’s in my json composer file? I am not getting how to add magento/inventory-composer-metapackage to the lock file.

Warning: The lock file is not up to date with the latest changes in composer.json. You may be getting outdated dependencies. It is recommended that you run `composer update` or `composer update <package name>`.
    W: - Required package "magento/inventory-composer-metapackage" is not present in the lock file.