Skip to content

Commit

Permalink
UV: Always run "sync" (#288)
Browse files Browse the repository at this point in the history
UV is fast, it's a good idea to run sync everytime to avoid surprises
  • Loading branch information
Tpt authored Oct 4, 2024
1 parent f4a2f26 commit 8907176
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changelog/_unreleased.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[[entries]]
id = "d8ada304-d3fe-43f0-b4fa-7d655949cdbc"
type = "improvement"
description = "Always run `uv sync`"
author = "[email protected]"
3 changes: 3 additions & 0 deletions kraken-build/src/kraken/std/python/buildsystem/uv.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,3 +301,6 @@ def install(self, settings: PythonSettings) -> None:
unsafe_command = [self.uv_bin, "sync"] + indexes.to_unsafe_args()
logger.info("Running %s in '%s'", safe_command, self.project_directory)
sp.check_call(unsafe_command, cwd=self.project_directory)

def always_install(self) -> bool:
return True

0 comments on commit 8907176

Please sign in to comment.