Skip to content

Commit

Permalink
Enabled lockfile creation in resolve step
Browse files Browse the repository at this point in the history
  • Loading branch information
Murmeldyret committed Aug 16, 2024
1 parent c97355a commit 28a7ea5
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/wurf/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down

0 comments on commit 28a7ea5

Please sign in to comment.