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 !
This commit is contained in:
Cor 2024-07-25 10:51:37 +02:00 committed by GitHub
parent e6241e196f
commit 9dbb58e821
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 4 deletions

View File

@ -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
}