def _update_local_requirements(self): """ Update the requirements from metadata entries, overriding the current formula requirements """ logger.Logger().info("Shaker: Updating the formula requirements...") self._shaker_metadata.update_dependencies( ignore_local_requirements=True) self._shaker_remote = ShakerRemote(self._shaker_metadata.dependencies) self._shaker_remote.update_dependencies()
def _load_local_requirements(self, enable_remote_check=False): """ Load the requirements file and update the remote dependencies Args: enable_remote_check(bool): False to use current formula without checking remotely for updates. True to use remote repository API to recalculate shas """ logger.Logger().info( "Shaker: Loading the current formula requirements...") self._shaker_remote = ShakerRemote( self._shaker_metadata.local_requirements) if enable_remote_check: logger.Logger().info( "Shaker: Updating the current formula requirements " "dependencies...") self._shaker_remote.update_dependencies()