From 7287c76d9579d053328711b6ea59920ef51f63c0 Mon Sep 17 00:00:00 2001 From: Pyra <92104930+pyranota@users.noreply.github.com> Date: Tue, 27 Jan 2026 12:53:30 +0100 Subject: [PATCH] fix(workspace-dependencies): lock hash instead of seq (#7697) Signed-off-by: pyranota --- backend/windmill-common/src/workspace_dependencies.rs | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/backend/windmill-common/src/workspace_dependencies.rs b/backend/windmill-common/src/workspace_dependencies.rs index 820dd2efa9..12be155668 100644 --- a/backend/windmill-common/src/workspace_dependencies.rs +++ b/backend/windmill-common/src/workspace_dependencies.rs @@ -96,14 +96,7 @@ pub struct WorkspaceDependencies { impl WorkspaceDependencies { pub fn hash(&self) -> String { - // non-raw workspace dependencies will start with index 1. - // so if we see index 0, it is either default or default and raw deps - // if so we will use it's content as baseline - if self.id == 0 { - calculate_hash(&self.content) - } else { - self.id.to_string() - } + calculate_hash(&self.content) } /// Marks workspace dependencies as archived. pub async fn archive<'c>(