Skip to content

Commit

Permalink
Merge pull request #145 from steinwurf/lock-versions-in-resolve
Browse files Browse the repository at this point in the history
Enabled lockfile creation in resolve step
  • Loading branch information
Murmeldyret authored Aug 28, 2024
2 parents c97355a + 28a7ea5 commit 69c38a6
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 69c38a6

Please sign in to comment.