From 9dbb58e821cb0b98c343755f0647007cba9c2570 Mon Sep 17 00:00:00 2001 From: Cor Date: Thu, 25 Jul 2024 10:51:37 +0200 Subject: [PATCH] Update Python dependencies before install when upgrading a labs project (#1624) The install script might require the up-to-date Python dependencies, explained in more detail in the referenced issue below Fixes #1623 ## Tests ! Need support with testing ! --- cmd/labs/project/installer.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/labs/project/installer.go b/cmd/labs/project/installer.go index 92dfe9e7..39ed9a96 100644 --- a/cmd/labs/project/installer.go +++ b/cmd/labs/project/installer.go @@ -132,14 +132,14 @@ func (i *installer) Upgrade(ctx context.Context) error { if err != nil { return fmt.Errorf("record version: %w", err) } - err = i.runInstallHook(ctx) - if err != nil { - return fmt.Errorf("installer: %w", err) - } err = i.installPythonDependencies(ctx, ".") if err != nil { return fmt.Errorf("python dependencies: %w", err) } + err = i.runInstallHook(ctx) + if err != nil { + return fmt.Errorf("installer: %w", err) + } return nil }