From 28a7ea5dea198c35893b730b41f071f26987b090 Mon Sep 17 00:00:00 2001 From: Rasmus Hald Nielsen Date: Fri, 16 Aug 2024 09:38:43 +0200 Subject: [PATCH] Enabled lockfile creation in resolve step --- src/wurf/configuration.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/wurf/configuration.py b/src/wurf/configuration.py index 69136c05..5e9ab169 100644 --- a/src/wurf/configuration.py +++ b/src/wurf/configuration.py @@ -87,11 +87,19 @@ def choose_help(self): def lock_paths(self): # Lock paths if configuring and the lock paths option was passed - return "configure" in self.args and self.options.lock_paths() + if "configure" in self.args and self.options.lock_paths(): + return True + elif "resolve" in self.args and self.options.lock_paths(): + return True + return False def lock_versions(self): # Lock versions if configuring and the lock versions option was passed - return "configure" in self.args and self.options.lock_versions() + if "configure" in self.args and self.options.lock_versions(): + return True + elif "resolve" in self.args and self.options.lock_versions(): + return True + return False def choose_resolve_from_lock(self, lock_file): if not self.choose_resolve():